db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Ledbrook" <pe...@cacoethes.co.uk>
Subject Re: Postgresql, integer types, and size (Torque 3.2 only)
Date Mon, 27 Mar 2006 14:01:32 GMT
Further to this, any query that involves a BOOLEANINT field fails with
the error:

  org.postgresql.util.PSQLException: ERROR: operator does not exist:
smallint = boolean

Apparently the query passes a boolean value for the field even though
it's implemented as an integer. From what I read elsewhere, this
strict behaviour in the PostgreSQL driver is unlikely to change, so
does anyone know of a workaround?



On 25/03/06, Peter Ledbrook <peter@cacoethes.co.uk> wrote:
> Hi,
> I have tried to build Scarab against a postgresql database, but I'm
> running into a problem with the SQL generated by Torque. The Scarab
> database schema specifies a size for some of its integer columns, and
> these columns then have a type of INTEGER(n), where 'n' is the given
> size. For example:
>   <column name="DELETED" required="false" type="BOOLEANINT"
> default="0" size="1" javaType="primitive"/>
> becomes the SQL:
> Unfortunately, postgresql does not support a size here, i.e. "INT2"
> works, but "INT2(1)" does not. Note that this problem occurs with
> Is this a know problem? Is there a workaround other than removing the
> 'size' attributes from integer columns?
> Thanks,
> Peter

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message