Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BAC9665021C for ; Mon, 11 Aug 2008 23:51:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53848-02 for ; Mon, 11 Aug 2008 23:51:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 46F24650215 for ; Mon, 11 Aug 2008 23:51:07 -0300 (ADT) Received: (qmail 24013 invoked from network); 12 Aug 2008 11:51:04 +0900 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.228) by sd2.tpf-fw-c.co.jp with SMTP; 12 Aug 2008 11:51:04 +0900 Message-ID: <48A0FA8F.2080903@tpf.co.jp> Date: Tue, 12 Aug 2008 11:50:55 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: J.Kraaijeveld@Askesis.nl CC: pgsql-odbc@postgresql.org Subject: Re: c type of int8 / serial8? References: <1218388274.4064.48.camel@panoramix.askesis.nl> In-Reply-To: <1218388274.4064.48.camel@panoramix.askesis.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.125 tagged_above=0 required=5 tests=DNS_FROM_RFC_BOGUSMX=2.125 X-Spam-Level: ** X-Archive-Number: 200808/10 X-Sequence-Number: 9570 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)