X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 0E2BE31084A for ; Mon, 30 Jun 2003 13:41:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 93286-03 for ; Mon, 30 Jun 2003 10:41:19 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id C4B4C310823 for ; Mon, 30 Jun 2003 10:41:14 -0300 (ADT) Received: (qmail 19465 invoked from network); 30 Jun 2003 13:41:13 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 30 Jun 2003 13:41:13 -0000 Received: from unknown (HELO PbgX) (219.61.40.61) by sd.tpf.co.jp with SMTP; 30 Jun 2003 13:41:13 -0000 From: "Hiroshi Inoue" To: "'Shachar Shemesh'" Cc: Subject: Re: A few problems with the ODBC driver Date: Mon, 30 Jun 2003 22:41:06 +0900 Message-ID: <006d01c33f0d$42a3ed70$3d283ddb@PbgX> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <1056976717.3f002f4dc9a96@latenight.fiasco.org.il> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Archive-Number: 200306/85 X-Sequence-Number: 3059 > -----Original Message----- > From: Shachar Shemesh > > Hi list, > > I'm still trying to find my way around the ODBC arena, so > please forgive me if I > ask something irrelevant. I am trying to migrate an > application that currently > works on Windows with MS-SQL and Oracle to also work with PG-SQL. I've > downloaded the 7.3.100 ODBC driver. The problems are > independant, but if anyone > manages to solve my first problem, I'm not going to care > about the other ones. > > 1. The application is successful in seeing the database, and > in getting the rows > from it. When it tries to modify a row, however, we get an > error that says "Only > SQL_POSITION/REFRESH is supported for PGAPI_SetPos". > Searching the sources > reveals that the line is issued as a result of line 2762 of > "result.c". The > preceding lines show that either the odbc driver was compiled without > DRIVER_CURSOR_IMPLEMENT, or the cursor is a read only cursor. > Tracing the MFC > stack reveals that the program does try to create a ROW_VER > cursor. Could it be > that the binary ODBC available from the mirrors does not > support cursors? Why? Are you checking the "Updatable cursors" DSN option ? > 2. I tried to compile a replica of the driver I downloaded. I > followed the > instructions in README.TXT. Created the project in Visual > Studio 6. Added the > def file (I opted for psqlodbc_win32.def, as that's the only > one that matched > the name of the DLL I was supposed to create). The result was > that the project > wouldn't compile. I tried to run ./configure from cygwin > before, and now it > would compile, but throw an exception when I try to run it. > What do I need to do > in order to recompile a copy of the binary version given at the site? Don't use the driver compiled under cygwin. I recommend to compile it from the command line i.e type nmake /f win32.mak regards, Hiroshi Inoue