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: Joe Little <email@hidden>
- Date: Tue, 23 Mar 2004 21:23:11 -0800
To give credit where credit is due:
james from jimijon.com (obvious attempt at not exposing the address
directly) answered my query on how he resolved it for MySQL. It so
happens to work regardless of the underlying DB.
On Mar 23, 2004, at 8:21 PM, Greg Hulands wrote:
Champion! You are a champion! This seems to be the winning formula for
booleans.
"Boolean - bool - c"
Thanks everyone for your help.
Greg
On 24/03/2004, at 1:01 PM, Joe Little wrote:
I received help from this by another list member. Indeed, you simply
change it to "Boolean - bool - c" for class, ext type, value type.
Proceed to save even with the warnings about the constructors. You'll
want to generate your java classes again, using a FileMerge to select
the Boolean declarations instead of the Number. I too use PostGreSQL
7.3.4
On Mar 23, 2004, at 6:24 PM, Greg Hulands wrote:
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.
_______________________________________________
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.