pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keith Hankin <keith105@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: One byte integer support
Date: Thu, 6 Jan 2005 10:17:29 -0800 (PST)
Message-ID: <20050106181729.84477.qmail@web40625.mail.yahoo.com> (raw)

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



view thread (6+ messages)  latest in thread

Message-ID: <20050106181729.84477.qmail@web40625.mail.yahoo.com>
Permalink:  ../20050106181729.84477.qmail@web40625.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050106181729.84477.qmail@web40625.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: keith105@yahoo.com
  Subject: Re: One byte integer support
  In-Reply-To: <20050106181729.84477.qmail@web40625.mail.yahoo.com>
  References: <20050106181729.84477.qmail@web40625.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox