Fix guarding of MySQL's numRows()
authorTim Starling <tstarling@wikimedia.org>
Mon, 8 Oct 2018 03:46:37 +0000 (14:46 +1100)
committerTim Starling <tstarling@wikimedia.org>
Mon, 8 Oct 2018 07:27:05 +0000 (18:27 +1100)
commit9fbbce857ccb64e64615b7bfb97c62a66f96c9ca
tree54aff2db393ee4e64c47add027ce33e1344f55d7
parent936b958cb960ceb4b475d0c2771ff2076163d5e3
Fix guarding of MySQL's numRows()

It can be true for successful write queries, not just false.

f3a197e49b785 introduced a caller which calls numRows() on the return
value of CREATE TEMPORARY TABLE queries, and it improved guarding of
numRows() in the PostgreSQL and SQLite cases accordingly, but it
neglected MySQL.

Bug: T201900
Change-Id: I8ae754a2518d9e47b093c31c20d98daaba913513
includes/libs/rdbms/database/DatabaseMysqlBase.php
includes/libs/rdbms/database/IDatabase.php