Array type error - Mailing list pgsql-jdbc

From RW Shore
Subject Array type error
Date
Msg-id AANLkTi=LMp0MN9fdZ11sUfW+K8JjTHSXt=zRAKpx9vh7@mail.gmail.com
Whole thread Raw
Responses Re: Array type error  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
PostgreSQL version: 9.0-801
Server host: Windows 7

I have a table with an attribute declared as a boolean array. As expected, when I query this table and extract a value for this attribute via getObject( ), I get an object of type java.sql.Array. However, the getBaseType( ) method on this object returns java.sql.Types.BIT ( -7 ) rather than the correct value java.sql.Types.BOOLEAN (16).

pgsql-jdbc by date:

Previous
From: Thor Michael Støre
Date:
Subject: Re: UDT arrays
Next
From: rsmogura
Date:
Subject: Re: UDT arrays