pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: 'Shachar Shemesh' <psql@shemesh.biz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: A few problems with the ODBC driver
Date: Mon, 30 Jun 2003 22:41:06 +0900
Message-ID: <006d01c33f0d$42a3ed70$3d283ddb@PbgX> (raw)
In-Reply-To: <1056976717.3f002f4dc9a96@latenight.fiasco.org.il>

> -----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




view thread (7+ messages)  latest in thread

Message-ID: <006d01c33f0d$42a3ed70$3d283ddb@PbgX>
Permalink:  ../006d01c33f0d$42a3ed70$3d283ddb@PbgX/
Also on:    postgresql.org/message-id/006d01c33f0d$42a3ed70$3d283ddb@PbgX

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, psql@shemesh.biz
  Subject: Re: A few problems with the ODBC driver
  In-Reply-To: <006d01c33f0d$42a3ed70$3d283ddb@PbgX>
  References: <1056976717.3f002f4dc9a96@latenight.fiasco.org.il> <006d01c33f0d$42a3ed70$3d283ddb@PbgX>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox