• 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
postgresql boolean error with a new jdbc driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

postgresql boolean error with a new jdbc driver


  • Subject: postgresql boolean error with a new jdbc driver
  • From: Paolo Sommaruga <email@hidden>
  • Date: Mon, 16 Nov 2009 13:56:50 +0100

Hi,

I have changed an old postgresql jdbc driver to a new driver. Now I have some error about boolean attribute, such the following:

Next exception:SQL State:42804 -- error code: 0 -- msg: ERROR: column "is_validated" is of type integer but _expression_ is of type boolean. You will need to rewrite or cast the _expression_

For years everything is went well with the old driver but I would like to upgrade some stuff now.

In Entity Modeler the attribute look like as usual:

Data Type: Custom
External type: int4
Class: java.lang.Boolean
Value Class: NSNumber
Value Type: c

The getter/setter method are

    public Boolean isValidated() {
        return (Boolean)storedValueForKey("isValidated");
    }

    public void setIsValidated(Boolean value) {
        takeStoredValueForKey(value, "isValidated");
    }


Any hint ? Perhaps one need override some method in the PostgresqlPlugIn ? I'm not an expert on jdbc adaptor, can someone help me ?

Regards

Paolo
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: WOAdaptor did not compile sucessfully on Solaris 10 (using Apache 2.2-64)
  • Next by Date: RE: Little help with a Db design quesiton
  • Previous by thread: RE: Little help with a Db design quesiton
  • Next by thread: Build Failed on Snow Leopard
  • Index(es):
    • Date
    • Thread