Always use reference assignment when taking the return value of wfGetDB(), or else...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 15 Aug 2005 13:06:33 +0000 (13:06 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 15 Aug 2005 13:06:33 +0000 (13:06 +0000)
commit28b2b4b2f5aadfbfc93b92945b401fb394ff7b06
tree80418f93d18c4dda708a2687fdaec765438d684b
parent1e37de93fea3132f8bc726710c6f08cdc3a7c3d2
Always use reference assignment when taking the return value of wfGetDB(), or else annoying bugs which are difficult to track down will result. Example of correct usage:

$dbr =& wfGetDB( DB_SLAVE );
includes/Article.php
includes/LinkCache.php
includes/Parser.php