Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7D04D6501C4 for ; Tue, 12 Aug 2008 01:17:28 -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 30882-07 for ; Tue, 12 Aug 2008 01:17:00 -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 A324465021C for ; Tue, 12 Aug 2008 01:04:14 -0300 (ADT) Received: (qmail 12931 invoked from network); 12 Aug 2008 13:04:12 +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 13:04:12 +0900 Message-ID: <48A10BB3.5090403@tpf.co.jp> Date: Tue, 12 Aug 2008 13:04:03 +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: int2: sql type bug? References: <1218488112.4064.115.camel@panoramix.askesis.nl> In-Reply-To: <1218488112.4064.115.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/11 X-Sequence-Number: 9571 Joost Kraaijeveld wrote: > Hi, > > > According to SQLColumns the sql type (DATA_TYPE) for a int2 column is > SQL_INTEGER. Here I get SQL_SMALLINT(=5) not SQL_INTEGER(=4) for int2 columns; How do you call SQLColumns() and get the DATA_TYPE ? regards, Hiroshi Inoue