• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Definitive solution for the bool bugs of 5.2.3?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 19:01:43 -0800

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.


References: 
 >Definitive solution for the bool bugs of 5.2.3? (From: Greg Hulands <email@hidden>)
 >Re: Definitive solution for the bool bugs of 5.2.3? (From: Arturo PĂ©rez <email@hidden>)

  • Prev by Date: Re: Definitive solution for the bool bugs of 5.2.3?
  • Next by Date: Re: Definitive solution for the bool bugs of 5.2.3?
  • Previous by thread: Re: Definitive solution for the bool bugs of 5.2.3?
  • Next by thread: Re: Definitive solution for the bool bugs of 5.2.3?
  • Index(es):
    • Date
    • Thread