Re: Definitive solution for the bool bugs of 5.2.3?
Re: Definitive solution for the bool bugs of 5.2.3?
- Subject: Re: Definitive solution for the bool bugs of 5.2.3?
- From: Greg Hulands <email@hidden>
- Date: Wed, 24 Mar 2004 12:24:13 +1000
I am using postgres 7.3.3. I am also using the postgres extensions from
hexdreams.com, as for the JDBC version I am not sure, I would say it is
the current one with 7.3.3
I tried specifying the class for it as Boolean instead of Number and it
then wanted to know the constructor and what not so I gave up on it.
You would think it would know Boolean is a type of Number.
Regards,
Greg
On 24/03/2004, at 12:06 PM, Arturo Pirez wrote:
On Mar 23, 2004, at 8:45 PM, Greg Hulands wrote:
I have followed the problems that people have been having over the
last couple of weeks with bools in the EOModel. I havee just come
across this problem myself and have tried the solutions people have
offered.
The attributes that have an internal db type of bool had their value
of type 'c' this was causing a class cast exception. I changed it to
'b' as someone suggested, but now I get a JDBCAdaptorException Bad
Byte f. The only thing I can think of is that postgres is returning
'false' to the adaptor and it does not know what to do with it.
The source for the current JDBC driver does not appear to support your
guess. Whenever getBoolean is called it returns a java boolean value.
Internally it looks like the booleans are always returned as "1" and
"0". What version are you using?
Of course, given the oddities with EOF and booleans you might want to
just avoid the whole thing.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.