Fix __toString method of DatabaseMysqli
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 1 Mar 2014 03:55:00 +0000 (23:55 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Sat, 1 Mar 2014 03:59:54 +0000 (23:59 -0400)
commitc393aa71e3e8b55e5459bceb16eb71a48a26c877
tree7a65a7e6955fd3162c28fe25166dea2e7f328e20
parenta6b3a69e93efc914349d07945351d875f9926d40
Fix __toString method of DatabaseMysqli

The superclass was casting mConn to string. For Mysql class this
is just the resource number. However for mysqli objects, that is
a fatal. thread_id seemed like the most convinenent id-ish number
to return instead.

Only really noticeable if you have $wgDebugTransactions = true;

Change-Id: I014bb7ab81d18c5bd07a267939b66a0a6161eb8d
includes/db/DatabaseMysqli.php