accesslib: fix SQL CAST()s to work on MySQL and PostgreSQL
commit9f560a0ccb4913c8f6931bd18cb7aadf746084ef
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:48:31 +0000 (19 07:48 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:48:31 +0000 (19 07:48 +0000)
tree649613e305ee9a36868bcd8ac3e846b912b8f507
parent926462034110bae3da21f2fec72fb807abee9797
accesslib: fix SQL CAST()s to work on MySQL and PostgreSQL

CAST() target types aren't very portable. Use DECIMAL which works
for MySQL and Pg.

DECIMAL does seem to be supported in Oracle - but the syntax seems
different. We may still need a compat function.
lib/accesslib.php