dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add `actor` table and code to start using it
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
database
/
IDatabase.php
diff --git
a/includes/libs/rdbms/database/IDatabase.php
b/includes/libs/rdbms/database/IDatabase.php
index
85b3481
..
2922bce
100644
(file)
--- a/
includes/libs/rdbms/database/IDatabase.php
+++ b/
includes/libs/rdbms/database/IDatabase.php
@@
-962,11
+962,11
@@
interface IDatabase {
* Example usage:
* @code
* $sql = $db->makeList( [
* Example usage:
* @code
* $sql = $db->makeList( [
- * 'rev_
user
' => $id,
+ * 'rev_
page
' => $id,
* $db->makeList( [ 'rev_minor' => 1, 'rev_len' < 500 ], $db::LIST_OR ] )
* ], $db::LIST_AND );
* @endcode
* $db->makeList( [ 'rev_minor' => 1, 'rev_len' < 500 ], $db::LIST_OR ] )
* ], $db::LIST_AND );
* @endcode
- * This would set $sql to "rev_
user
= '$id' AND (rev_minor = '1' OR rev_len < '500')"
+ * This would set $sql to "rev_
page
= '$id' AND (rev_minor = '1' OR rev_len < '500')"
*
* @param array $a Containing the data
* @param int $mode IDatabase class constant:
*
* @param array $a Containing the data
* @param int $mode IDatabase class constant:
@@
-1255,6
+1255,11
@@
interface IDatabase {
* INSERT SELECT wrapper. Takes data from a SELECT query and inserts it
* into another table.
*
* INSERT SELECT wrapper. Takes data from a SELECT query and inserts it
* into another table.
*
+ * @warning If the insert will use an auto-increment or sequence to
+ * determine the value of a column, this may break replication on
+ * databases using statement-based replication if the SELECT is not
+ * deterministically ordered.
+ *
* @param string $destTable The table name to insert into
* @param string|array $srcTable May be either a table name, or an array of table names
* to include in a join.
* @param string $destTable The table name to insert into
* @param string|array $srcTable May be either a table name, or an array of table names
* to include in a join.
@@
-1771,7
+1776,7
@@
interface IDatabase {
public function setSchemaVars( $vars );
/**
public function setSchemaVars( $vars );
/**
- * Check to see if a named lock is
available
(non-blocking)
+ * Check to see if a named lock is
not locked by any thread
(non-blocking)
*
* @param string $lockName Name of lock to poll
* @param string $method Name of method calling us
*
* @param string $lockName Name of lock to poll
* @param string $method Name of method calling us