Received: from mail.rdc1.md.home.com (imail@ha1.rdc1.md.home.com [24.2.2.66]) by hub.org (8.9.3/8.9.3) with ESMTP id UAA92341 for ; Tue, 1 Feb 2000 20:39:43 -0500 (EST) (envelope-from byron.nikolaidis@home.com) Received: from home.com ([24.4.141.52]) by mail.rdc1.md.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000202013942.NJWY15918.mail.rdc1.md.home.com@home.com>; Tue, 1 Feb 2000 17:39:42 -0800 Message-ID: <38978AD2.E59D439A@home.com> Date: Tue, 01 Feb 2000 20:39:30 -0500 From: Byron Nikolaidis Organization: @Home Network X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: "Ken J. Wright" CC: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] ODBC bind trouble with bigint References: <3.0.1.32.20000201100612.00b9c100@ori-ind.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Ken J. Wright" wrote: > > With Delphi 4/ODBCExpress 5.04 and psqlodbc 6.40.0008, this error occurs > when opening a dataset that includes an int8 column. > > Project1 ee:dc ENTER SQLBindCol > HSTMT 0x010b2138 > UWORD 3 > SWORD -25 > PTR 0x011b7574 > SDWORD 0 > SDWORD * 0x011b75ac > > Project1 ee:dc EXIT SQLBindCol with return code -1 (SQL_ERROR) > HSTMT 0x010b2138 > UWORD 3 > SWORD -25 > PTR 0x011b7574 > SDWORD 0 > SDWORD * 0x011b75ac > > DIAG [HYC00] [Microsoft][ODBC Driver Manager] Driver does not support > this parameter (0) > > ************ I'm thinking this has to be an odbc 3.0 compatibility problem. The default for odbc 2.x is that BIGINT uses a SQL_C data type of SQL_C_CHAR. I tested BindCol and it worked fine. There is no SQL_C_SBIGINT in odbc 2.x. Seems to me the odbc 3.0 driver manager should bridge the gap and use an SQL_C_CHAR for the driver side. So, I don't know what to tell you. I imagine you don't have any control over the SQL_C_ data type, right? Byron