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: (view raw, whole thread or download thread mbox)
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.


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-2017 The PostgreSQL Global Development Group