One byte integer support - Mailing list pgsql-jdbc

From Keith Hankin
Subject One byte integer support
Date
Msg-id 20050106181729.84477.qmail@web40625.mail.yahoo.com
Whole thread Raw
Responses Re: One byte integer support  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Is there any way to support one byte integers? I am
using JDBC and would like to use setByte() method to
populate values of a single-byte integer valued
column. I tried defining the column as character(1),
but I get the error message:

Exception in thread "main"
org.postgresql.util.PSQLException: ERROR: value too
long for type character(1)

I don't see how a byte is too long for character(1).
Is there any data type like MySQL's tinyint?




__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Removing our datasource/pooling implementation.
Next
From: Aaron Mulder
Date:
Subject: Re: Removing our datasource/pooling implementation.