postgresql boolean error with a new jdbc driver
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