Force inserted bools to be ints, per Tim's suggestion on bug 15148.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 21 Aug 2008 13:10:19 +0000 (13:10 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 21 Aug 2008 13:10:19 +0000 (13:10 +0000)
commit609ad548356c595e8a2f8fbf70ea8ae7a0965e18
tree7824838b1c892dd75b4a53aa56d3671794fce591
parentca28cc4b160ce138f817832f248c55fdbd5a2f11
Force inserted bools to be ints, per Tim's suggestion on bug 15148.
This should be fine for now as Postgres uses SMALLINTs for BOOLs, to
match MySQLs BOOL/TINYINT aliasing and subsequent MW coding assumptions.
It's possible this will cause bad effects if inserted values are called
in a boolean context when they are going into a non-SMALLINT column, but we can handle
those as they come up.
includes/db/DatabasePostgres.php