Re: SQL CHAR type using setByte()

From: "David Wall" <d(dot)wall(at)computer(dot)org>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: SQL CHAR type using setByte()
Date: 2001-03-13 22:15:18
Message-ID: 009001c0ac0b$169bc960$5a2b7ad8@expertrade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

A quick review of the JDBC code shows that in fact everything that you pass
into the driver is converted to a String first.

Since Java char fields are 16 bit unicode characters, how does one go about
using the SQL type CHAR(1), which by default is only one byte (there is no
call setChar() in JDBC)? I see that the driver has a type TINYINT, but I
have no idea what that maps to in Postgresql or in Java, though it sure
sounds like a byte to me.

David

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message jlemcke 2001-03-13 23:15:01 Re: serialized objects and JDBC driver
Previous Message David Wall 2001-03-13 21:58:34 SQL CHAR type using setByte()