Skip site navigation (1) Skip section navigation (2)

One byte integer support

From: Keith Hankin <keith105(at)yahoo(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: One byte integer support
Date: 2005-01-06 18:17:29
Message-ID: 20050106181729.84477.qmail@web40625.mail.yahoo.com (view raw or flat)
Thread:
Lists: 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

Responses

pgsql-jdbc by date

Next:From: Aaron MulderDate: 2005-01-06 19:21:39
Subject: Re: Removing our datasource/pooling implementation.
Previous:From: Dave CramerDate: 2005-01-06 13:11:10
Subject: Re: Removing our datasource/pooling implementation.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group