Re: c type of int8 / serial8? - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: c type of int8 / serial8?
Date
Msg-id 48A0FA8F.2080903@tpf.co.jp
Whole thread Raw
In response to c type of int8 / serial8?  ("Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl>)
Responses Re: c type of int8 / serial8?
List 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)


pgsql-odbc by date:

Previous
From: "Joost Kraaijeveld"
Date:
Subject: int2: sql type bug?
Next
From: Hiroshi Inoue
Date:
Subject: Re: int2: sql type bug?