dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00404a
)
Added rollback-related comment to nextSequenceValue()
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 13 Nov 2011 11:28:56 +0000
(11:28 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 13 Nov 2011 11:28:56 +0000
(11:28 +0000)
includes/db/Database.php
patch
|
blob
|
history
diff --git
a/includes/db/Database.php
b/includes/db/Database.php
index
02839c3
..
4b54b8e
100644
(file)
--- a/
includes/db/Database.php
+++ b/
includes/db/Database.php
@@
-2258,6
+2258,10
@@
abstract class DatabaseBase implements DatabaseType {
* Returns an appropriately quoted sequence value for inserting a new row.
* MySQL has autoincrement fields, so this is just NULL. But the PostgreSQL
* subclass will return an integer, and save the value for insertId()
+ *
+ * Any implementation of this function should *not* involve reusing
+ * sequence numbers created for rolled-back transactions.
+ * See http://bugs.mysql.com/bug.php?id=30767 for details.
*/
function nextSequenceValue( $seqName ) {
return null;