From a5ed95fdbf00b0e410e4707c6fd2ee84f66cac2c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 13 Nov 2011 11:28:56 +0000 Subject: [PATCH] Added rollback-related comment to nextSequenceValue() --- includes/db/Database.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/db/Database.php b/includes/db/Database.php index 02839c33ec..4b54b8e4f1 100644 --- 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; -- 2.20.1