Fix usage of $db->nextSequenceValue()
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 10 May 2017 21:28:24 +0000 (17:28 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 10 May 2017 21:28:24 +0000 (17:28 -0400)
commit9ca6b0f64cc58efd2a132f8b08fca8758ce1ab1f
treefd6f8e3373e11b2447c9e0e679be96e8563fe686
parent79ae60f0e67797ee0ff898885dbd0f0822783efd
Fix usage of $db->nextSequenceValue()

The return value from the method is only suitable for passing to
$db->insert(). To get the inserted ID, you need to call $db->insertId()
even if $db->nextSequenceValue() returned non-null.

Bug: T164900
Change-Id: I6beb6243ccb9425372623307ef23ae6571ce8c0d
includes/Revision.php
includes/logging/LogEntry.php
includes/logging/LogPage.php