From: Hiroshi Inoue <inoue@tpf.co.jp>
To: J.Kraaijeveld@Askesis.nl
Cc: pgsql-odbc@postgresql.org
Subject: Re: c type of int8 / serial8?
Date: Tue, 12 Aug 2008 11:50:55 +0900
Message-ID: <48A0FA8F.2080903@tpf.co.jp> (raw)
In-Reply-To: <1218388274.4064.48.camel@panoramix.askesis.nl>
References: <1218388274.4064.48.camel@panoramix.askesis.nl>
Joost Kraaijeveld wrote:
> Hi,
>
> I wonder what the C type of int8 / serial8 is.
>
> If I use SQLGetTypeInfo() to get all the supported type is says that
> int8 is of SQL type SQL_BIGINT. It does not show any values for serial8
> but I suppose that that is a user defined type and the driver is not
> required to show those (is that correct?).
No.
serial8 is bigint not a user defined type.
xxxx=> create table tab1 (id serial8);
NOTICE: CREATE TABLE will create implicit sequence "tab1_id_seq" for
serial column "tab1.id"
CREATE TABLE
xxxx=> insert into tab1 values ('-9223372036854775808');
INSERT 0 1
xxxx=> select * from tab1;
id
----------------------
-9223372036854775808
(1 row)
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-odbc@postgresql.org
Cc: inoue@tpf.co.jp, J.Kraaijeveld@Askesis.nl
Subject: Re: c type of int8 / serial8?
In-Reply-To: <48A0FA8F.2080903@tpf.co.jp>
References: <1218388274.4064.48.camel@panoramix.askesis.nl> <48A0FA8F.2080903@tpf.co.jp>
* 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