Re: c type of int8 / serial8?

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: J(dot)Kraaijeveld(at)Askesis(dot)nl
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: c type of int8 / serial8?
Date: 2008-08-12 02:50:55
Message-ID: 48A0FA8F.2080903@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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)

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2008-08-12 04:04:03 Re: int2: sql type bug?
Previous Message Joost Kraaijeveld 2008-08-11 20:55:12 int2: sql type bug?