jdonaldson / postgrehx

An implementation of the postgres wire protocol in Haxe
16 stars 3 forks source link

Fixed bool type fields returning null instead of true or false #10

Closed theRemix closed 9 years ago

theRemix commented 10 years ago

the problem i was experiencing was that in a spod object, all Bool fields were null, instead of true or false.

this simple change fixes my ResultSet. https://github.com/theRemix/postgrehx/commit/3d6d642b5a50da8a220b76a65446cde36a3950b7

the problem though, is that without the change in Postgres.hx, the Tests still pass. I haven't been able to get them to fail in Tests, though they fail in a project i'm working on.

i don't understand how Std.parseInt('t') can evaluate to true.

jdonaldson commented 10 years ago

I think this should be fixed now, can you check?

I should've cherry picked this... let me read back through your messages and see about resolving our branches.