Subject: | boolean conversion to 0 and 1 rather than '0' and '1' |
Hi,
I'm running ActiveState Perl 5.10 build 1004 on Windows Server 2003
Standard Edition SP2.
It would be useful if there was some way to have boolean values come
back from the database as the number values 0 or 1 rather than as the
string values "0" and "1", because if you pass these directly to a JSON
encoder, you lose the boolean meaning in JavaScript because both
strings, being non-empty, evaluate to true.
Detailed story here:
http://stackoverflow.com/questions/1087308/why-cant-i-properly-encode-a-boolean-from-postgresql-via-jsonxs-via-perl
I'm not clear on the correct way to modify quote.c to have this happen,
but hopefully it's a simple change?
Thanks,
Kev