pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: SQLTables don't stop
5+ messages / 2 participants
[nested] [flat]

* Re: SQLTables don't stop
@ 2005-12-09 02:59 Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 0 replies; 5+ messages in thread

From: Ludek Finstrle @ 2005-12-09 02:59 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

> *However*, whilst testing I did find an issue with SQLTables that
> seems surprisingly similar to the one you fixed before. It's pretty
> easy to recreate in the Microsoft test suite.

I didn't fix something similar. I don't remember it at least. Could
you be more specific? I only point at Prepare, Execute, Execute or
ExecDirect, ExecDirect problem.

> - Connect to a data source with Declare/Fetch enabled.
> - SQLExecDirect "SELECT * FROM pg_class"
> - Get Data All (from the results menu)
> - SQLTables
> - Get Data All
> 
> It never stops retrieving data! Seems that you need to do the
> SQLExecDirect first - SQLExecute doesn't trigger the problem.
> SQLColumns is similarly affected - perhaps there are more as well.

I'm unable reproduce it here. I have CVS source with autocommit_off patch.
It stops when I expect.

I tried it againist ANSI (debug) driver (PgSQL 8.1 Win)  with these
options:
- SSL Mode = disable
- default settings except:
  - Use Declare/Fetch - checked
  - MyLog - checked

> Wanna take a look, or shall I log a bug until one of us gets time?

Please send me your mylog output and driver for testing purposes (maybe
zipped source code too ?).
Feel free to log a bug. Bug tracer is here for this purpose ;-)

Regards,

Luf



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

* Re: SQLTables don't stop
@ 2005-12-09 11:40 Ludek Finstrle <luf@pzkagis.cz>
  2005-12-09 14:04 ` Re: SQLTables don't stop Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 1 reply; 5+ messages in thread

From: Ludek Finstrle @ 2005-12-09 11:40 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

> > > *However*, whilst testing I did find an issue with SQLTables that
> > > seems surprisingly similar to the one you fixed before. It's pretty
> > > easy to recreate in the Microsoft test suite.
> > 
> > I didn't fix something similar. I don't remember it at least. Could
> > you be more specific? I only point at Prepare, Execute, Execute or
> > ExecDirect, ExecDirect problem.
> 
> There was a fix for SQLTables where Declare/Fetch messed things up for
> Borland SQL Explorer/BDE by duplicating rows.

Yes. I didn't think it's problem. But maybe it is.

> > > - Connect to a data source with Declare/Fetch enabled.
> > > - SQLExecDirect "SELECT * FROM pg_class"
> > > - Get Data All (from the results menu)
> > > - SQLTables
> > > - Get Data All
> > > 
> > > It never stops retrieving data! Seems that you need to do the
> > > SQLExecDirect first - SQLExecute doesn't trigger the problem.
> > > SQLColumns is similarly affected - perhaps there are more as well.
> > 
> > I'm unable reproduce it here. I have CVS source with 
> > autocommit_off patch.
> > It stops when I expect.
> 
> Odd.

You forgot say that you setup cache size to 10 :-) That's the difference.
I read it from log. So I'm able to reproduce the problem now.

Regards,

Luf



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

* Re: SQLTables don't stop
  2005-12-09 11:40 Re: SQLTables don't stop Ludek Finstrle <luf@pzkagis.cz>
@ 2005-12-09 14:04 ` Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 0 replies; 5+ messages in thread

From: Ludek Finstrle @ 2005-12-09 14:04 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

> > > I didn't fix something similar. I don't remember it at least. Could
> > > you be more specific? I only point at Prepare, Execute, Execute or
> > > ExecDirect, ExecDirect problem.
> > 
> > There was a fix for SQLTables where Declare/Fetch messed things up for
> > Borland SQL Explorer/BDE by duplicating rows.
> 
> Yes. I didn't think it's problem. But maybe it is.

I rollbacked the patch and problem is still here. I locate it
and fix. Patch attached.

There is problem in mixing different STMTs :-(

Luf

Attachments:

psqlodbc-fetchcursor.diff (text/plain, 849B) download diff -c psqlodbc.orig\statement.c psqlodbc\statement.c *** psqlodbc.orig\statement.c Wed Nov 30 13:44:37 2005 --- psqlodbc\statement.c Fri Dec 09 15:55:58 2005 *************** *** 242,250 **** --- 242,252 ---- { StatementClass *rv; + mylog("SC_Constructor: entering ...\n"); rv = (StatementClass *) malloc(sizeof(StatementClass)); if (rv) { + mylog("SC_Constructor: created stmt = %u\n",rv); rv->hdbc = NULL; /* no connection associated yet */ rv->phstmt = NULL; rv->result = NULL; *************** *** 974,979 **** --- 976,982 ---- if ((((self->currTuple + 1) % ci->drivers.fetch_max) >= QR_get_num_total_tuples(res)) && QR_get_num_total_tuples(res) < ci->drivers.fetch_max) { + SC_no_fetchcursor(self); self->currTuple = QR_get_num_total_tuples(res); return SQL_NO_DATA_FOUND; }
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: SQLTables don't stop
@ 2005-12-09 11:44 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 5+ messages in thread

From: Dave Page @ 2005-12-09 11:44 UTC (permalink / raw)
  To: Ludek Finstrle <luf@pzkagis.cz>; +Cc: pgsql-odbc

 

> -----Original Message-----
> From: Ludek Finstrle [mailto:luf@pzkagis.cz] 
> Sent: 09 December 2005 11:41
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] SQLTables don't stop
> 
> 
> You forgot say that you setup cache size to 10 :-) That's the 
> difference.
> I read it from log. So I'm able to reproduce the problem now.

Sorry - I always keep it low on my test DSNs to help show any errors :-)

Regards, Dave



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

* Re: SQLTables don't stop
@ 2005-12-09 22:35 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 5+ messages in thread

From: Dave Page @ 2005-12-09 22:35 UTC (permalink / raw)
  To: Ludek Finstrle <luf@pzkagis.cz>; +Cc: pgsql-odbc

 

> -----Original Message-----
> From: Ludek Finstrle [mailto:luf@pzkagis.cz] 
> Sent: 09 December 2005 14:04
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] SQLTables don't stop
> 
> > > > I didn't fix something similar. I don't remember it at 
> least. Could
> > > > you be more specific? I only point at Prepare, Execute, 
> Execute or
> > > > ExecDirect, ExecDirect problem.
> > > 
> > > There was a fix for SQLTables where Declare/Fetch messed 
> things up for
> > > Borland SQL Explorer/BDE by duplicating rows.
> > 
> > Yes. I didn't think it's problem. But maybe it is.
> 
> I rollbacked the patch and problem is still here. I locate it
> and fix. Patch attached.
> 
> There is problem in mixing different STMTs :-(

Thanks - looks good, patch applied.

Regards, Dave.



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


end of thread, other threads:[~2005-12-09 22:35 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 02:59 Re: SQLTables don't stop Ludek Finstrle <luf@pzkagis.cz>
2005-12-09 11:40 Re: SQLTables don't stop Ludek Finstrle <luf@pzkagis.cz>
2005-12-09 14:04 ` Ludek Finstrle <luf@pzkagis.cz>
2005-12-09 11:44 Re: SQLTables don't stop Dave Page <dpage@vale-housing.co.uk>
2005-12-09 22:35 Re: SQLTables don't stop Dave Page <dpage@vale-housing.co.uk>

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