Array type error

From: RW Shore <rws228(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Array type error
Date: 2011-02-14 10:28:07
Message-ID: AANLkTi=LMp0MN9fdZ11sUfW+K8JjTHSXt=zRAKpx9vh7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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).

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message rsmogura 2011-02-14 11:29:33 Re: UDT arrays
Previous Message Thor Michael Støre 2011-02-13 18:03:29 Re: UDT arrays