Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CA676650192 for ; Tue, 12 Aug 2008 02:30:52 -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 89801-09 for ; Tue, 12 Aug 2008 02:30:45 -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 71059650179 for ; Tue, 12 Aug 2008 02:30:44 -0300 (ADT) Received: (qmail 31414 invoked from network); 12 Aug 2008 14:30:42 +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 14:30:42 +0900 Message-ID: <48A11FF5.1000704@tpf.co.jp> Date: Tue, 12 Aug 2008 14:30:29 +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> <48A0FA8F.2080903@tpf.co.jp> <1218515040.4064.122.camel@panoramix.askesis.nl> In-Reply-To: <1218515040.4064.122.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/14 X-Sequence-Number: 9574 Joost Kraaijeveld wrote: > On Tue, 2008-08-12 at 11:50 +0900, Hiroshi Inoue wrote: >> 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. > > In that case : why doesn't SQLGetTypeInfo return serial8 (and serial) as > a supported type? I'm not sure if the driver should report serial(8) as a suppooted type. They both are kind of macro and don't exist in pg_type. regards, Hiroshi Inoue