Special-case empty arrays and single-element arrays in database wrappers.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 15 Nov 2007 18:35:58 +0000 (18:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 15 Nov 2007 18:35:58 +0000 (18:35 +0000)
commit7700199c34578ac34bfbce71cb8cb26ee76b3979
tree37592e3f5387b70a834e54c0fe292618055be645
parenta5f69979786ccc7e843accfe0385a0d0557340f0
Special-case empty arrays and single-element arrays in database wrappers.
* single-element arrays were inefficient ("field IN (42)"), now using straight matches ("field=42")
* empty arrays caused an error ("IN ()" is invalid syntax), now will evaluate to 0 (false)
includes/Database.php