pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Bug in latest ODBC driver (07.02.0004)
4+ messages / 2 participants
[nested] [flat]

* Bug in latest ODBC driver (07.02.0004)
@ 2002-11-22 05:26  Glen Parker <glenebob@nwlink.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Glen Parker @ 2002-11-22 05:26 UTC (permalink / raw)
  To: pgsql-odbc

The 07.02.0004 (the ver. 3, non unicode in this case) driver has broken
some programs I have.  Attached is a snip from my ODBC log.

The basic problem seems to be that sending a 'create ...' statement to
the server and trying to get the row count after it executes causes
errors that shouldn't be happening.  The statement executes fine, as the
log shows, but SQLRowCount() returns -1 (SQL_ERROR).  There is also
aparently no error info saved because SQLGetDiagRecW() returns 100
(SQL_NO_DATA_FOUND).

Shouldn't SQLRowCount() succeed and return a row count of -1?

My platform is Win2k.

select version();
 PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96


Glen Parker
glenebob@nwlink.com

Attachments:

  ODBC.log (application/octet-stream, 1.8K) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Bug in latest ODBC driver (07.02.0004)
@ 2002-11-25 01:56  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Glen Parker <glenebob@nwlink.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Hiroshi Inoue @ 2002-11-25 01:56 UTC (permalink / raw)
  To: Glen Parker <glenebob@nwlink.com>; +Cc: pgsql-odbc

Glen Parker wrote:
> 
> The 07.02.0004 (the ver. 3, non unicode in this case) driver has
> broken some programs I have.  Attached is a snip from my ODBC log.
> 
> The basic problem seems to be that sending a 'create ...' statement
> to the server and trying to get the row count after it executes
> causes errors that shouldn't be happening.  The statement executes
> fine, as the log shows, but SQLRowCount() returns -1 (SQL_ERROR).
> There is also aparently no error info saved because
> SQLGetDiagRecW() returns 100 (SQL_NO_DATA_FOUND).
> 
> Shouldn't SQLRowCount() succeed and return a row count of -1?

You seem to be right. I would commit the change.
Also try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/.

Thanks.
Hiroshi Inoue



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Bug in latest ODBC driver (07.02.0004)
@ 2002-11-25 08:55  Glen Parker <glenebob@nwlink.com>
  parent: Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 1 reply; 4+ messages in thread

From: Glen Parker @ 2002-11-25 08:55 UTC (permalink / raw)
  To: 'Hiroshi Inoue' <Inoue@tpf.co.jp>; pgsql-odbc

> > Shouldn't SQLRowCount() succeed and return a row count of -1?
> 
> You seem to be right. I would commit the change.
> Also try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/.

That did it.  Thx.
And yes, please commit.  There seems to be another bug fixed in current
CVS and I'd like to get a fresh build with this latest fix and continue
my testing.

Glen Parker
glenebob@nwlink.com




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Bug in latest ODBC driver (07.02.0004)
@ 2002-11-25 09:09  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Glen Parker <glenebob@nwlink.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Hiroshi Inoue @ 2002-11-25 09:09 UTC (permalink / raw)
  To: Glen Parker <glenebob@nwlink.com>; +Cc: pgsql-odbc

Glen Parker wrote:
> 
> > > Shouldn't SQLRowCount() succeed and return a row count of -1?
> >
> > You seem to be right. I would commit the change.
> > Also try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/.
> 
> That did it.  Thx.
> And yes, please commit.  There seems to be another bug fixed in current
> CVS and I'd like to get a fresh build with this latest fix and continue
> my testing.

OK I've just committed the change.

regards,
Hiroshi Inoue
	http://w2422.nsk.ne.jp/~inoue/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-11-25 09:09 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-22 05:26 Bug in latest ODBC driver (07.02.0004) Glen Parker <glenebob@nwlink.com>
2002-11-25 01:56 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-11-25 08:55   ` Glen Parker <glenebob@nwlink.com>
2002-11-25 09:09     ` Hiroshi Inoue <Inoue@tpf.co.jp>

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