Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 21DD46501A4 for ; Mon, 11 Aug 2008 17:55:23 -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 39042-07 for ; Mon, 11 Aug 2008 17:55:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by postgresql.org (Postfix) with ESMTP id E5D4C650169 for ; Mon, 11 Aug 2008 17:55:17 -0300 (ADT) thread-index: Acj79I1HtZL9LMb4StGAB6Kvc3vGOw== X-PMWin-Version: 2.6.1, Antivirus-Engine: 2.74.1 Received: from [172.31.1.1] ([172.31.1.1]) by obelix.askesis.nl with Microsoft SMTPSVC(5.0.2195.6713); Mon, 11 Aug 2008 22:55:13 +0200 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Subject: int2: sql type bug? From: "Joost Kraaijeveld" Reply-To: To: Content-Type: text/plain; charset="iso-8859-1" Organization: Askesis B.V. Date: Mon, 11 Aug 2008 22:55:12 +0200 Message-ID: <1218488112.4064.115.camel@panoramix.askesis.nl> MIME-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Aug 2008 20:55:13.0484 (UTC) FILETIME=[8CEAA8C0:01C8FBF4] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/9 X-Sequence-Number: 9569 Hi, According to SQLColumns the sql type (DATA_TYPE) for a int2 column is SQL_INTEGER. According to SQLGetTypeInfo the sql type is SQL_SMALLINT. Is this a bug? BTW: I am writing an application that uses the ODBC rather heavily. Is ODBC actually maintained and is there someone who is prepared to answer some questions (and accept (source)solutions for problems)? -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl