pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSQLSetPos
5+ messages / 2 participants
[nested] [flat]
* SQLSetPos
@ 2003-04-03 20:50 Dave Page <dpage@vale-housing.co.uk>
2003-04-03 22:07 ` Re: SQLSetPos Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 5+ messages in thread
From: Dave Page @ 2003-04-03 20:50 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
Hi Hiroshi,
I've had a query about support for SQLSetPos(SQL_UPDATE) in psqlODBC.
Upon examination of the code there seems to be some there to handle
SQL_UPDATE, however the function exits with an error (Only
SQL_POSITION/REFRESH is supported for PGAPI_SetPos) before any of that
code is ever reached.
Do you know if that's an oversight, or is the code that's there not
ready for use yet?
Regards, Dave.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLSetPos
2003-04-03 20:50 SQLSetPos Dave Page <dpage@vale-housing.co.uk>
@ 2003-04-03 22:07 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 5+ messages in thread
From: Hiroshi Inoue @ 2003-04-03 22:07 UTC (permalink / raw)
To: 'Dave Page' <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc
> -----Original Message-----
> From: Dave Page [mailto:dpage@vale-housing.co.uk]
>
> Hi Hiroshi,
>
> I've had a query about support for SQLSetPos(SQL_UPDATE) in psqlODBC.
> Upon examination of the code there seems to be some there to handle
> SQL_UPDATE, however the function exits with an error (Only
> SQL_POSITION/REFRESH is supported for PGAPI_SetPos) before any of that
> code is ever reached.
>
> Do you know if that's an oversight, or is the code that's there not
> ready for use yet?
You can use SQLSetPos(SQL_UPDATE) if you compiled the driver
with DRIVER_CURSOR_IMPLEMENT #defined(the current makefile
s in cvs already #define it) and turn on the *Updatable cursors* DSN
option.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLSetPos
@ 2003-04-04 07:21 Dave Page <dpage@vale-housing.co.uk>
2003-04-05 16:05 ` Re: SQLSetPos Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 5+ messages in thread
From: Dave Page @ 2003-04-04 07:21 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
> -----Original Message-----
> From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
> Sent: 03 April 2003 23:08
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: RE: SQLSetPos
>
>
> > -----Original Message-----
> > From: Dave Page [mailto:dpage@vale-housing.co.uk]
> >
> > Hi Hiroshi,
> >
> > I've had a query about support for SQLSetPos(SQL_UPDATE) in
> psqlODBC.
> > Upon examination of the code there seems to be some there to handle
> > SQL_UPDATE, however the function exits with an error (Only
> > SQL_POSITION/REFRESH is supported for PGAPI_SetPos) before
> any of that
> > code is ever reached.
> >
> > Do you know if that's an oversight, or is the code that's there not
> > ready for use yet?
>
> You can use SQLSetPos(SQL_UPDATE) if you compiled the driver
> with DRIVER_CURSOR_IMPLEMENT #defined(the current makefile s
> in cvs already #define it) and turn on the *Updatable
> cursors* DSN option.
OK thanks. I'm confused by the following code towards the beginning of
PGAPI_SetPos which is not in any #ifdef block that I can see:
if (fOption != SQL_POSITION && fOption != SQL_REFRESH)
{
SC_set_error(stmt, STMT_NOT_IMPLEMENTED_ERROR, "Only
SQL_POSITION/REFRESH is supported for PGAPI_SetPos");
SC_log_error(func, "", stmt);
return SQL_ERROR;
}
Won't that make the function exit with an error before an SQL_UPDATE is
handled?
Regards, Dave.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLSetPos
2003-04-04 07:21 Re: SQLSetPos Dave Page <dpage@vale-housing.co.uk>
@ 2003-04-05 16:05 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 5+ messages in thread
From: Hiroshi Inoue @ 2003-04-05 16:05 UTC (permalink / raw)
To: 'Dave Page' <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc
> -----Original Message-----
> From: Dave Page [mailto:dpage@vale-housing.co.uk]
> > -----Original Message-----
> > From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
> > > -----Original Message-----
> > > From: Dave Page [mailto:dpage@vale-housing.co.uk]
> > >
> > > Hi Hiroshi,
> > >
> > > I've had a query about support for SQLSetPos(SQL_UPDATE) in
> > psqlODBC.
> > > Upon examination of the code there seems to be some there
> to handle
> > > SQL_UPDATE, however the function exits with an error (Only
> > > SQL_POSITION/REFRESH is supported for PGAPI_SetPos) before
> > any of that
> > > code is ever reached.
> > >
> > > Do you know if that's an oversight, or is the code that's
> there not
> > > ready for use yet?
> >
> > You can use SQLSetPos(SQL_UPDATE) if you compiled the driver
> > with DRIVER_CURSOR_IMPLEMENT #defined(the current makefile s
> > in cvs already #define it) and turn on the *Updatable
> > cursors* DSN option.
>
> OK thanks. I'm confused by the following code towards the beginning of
> PGAPI_SetPos which is not in any #ifdef block that I can see:
There's
else
#endif /* DRIVER_CURSOR_IMPLEMENT */
just before the below code. Please pay attention to the above *else*.
> if (fOption != SQL_POSITION && fOption != SQL_REFRESH)
> {
> SC_set_error(stmt, STMT_NOT_IMPLEMENTED_ERROR, "Only
> SQL_POSITION/REFRESH is supported for PGAPI_SetPos");
> SC_log_error(func, "", stmt);
> return SQL_ERROR;
> }
>
> Won't that make the function exit with an error before an
> SQL_UPDATE is
> handled?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLSetPos
@ 2003-04-05 19:06 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 5+ messages in thread
From: Dave Page @ 2003-04-05 19:06 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
> -----Original Message-----
> From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
> Sent: 05 April 2003 17:05
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: RE: SQLSetPos
>
>
> There's
>
> else
> #endif /* DRIVER_CURSOR_IMPLEMENT */
>
> just before the below code. Please pay attention to the above *else*.
Acl!! Couldn't see it for looking!
Sorry :-)
Regards, Dave.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-04-05 19:06 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-03 20:50 SQLSetPos Dave Page <dpage@vale-housing.co.uk>
2003-04-03 22:07 ` Hiroshi Inoue <inoue@tpf.co.jp>
2003-04-04 07:21 Re: SQLSetPos Dave Page <dpage@vale-housing.co.uk>
2003-04-05 16:05 ` Hiroshi Inoue <inoue@tpf.co.jp>
2003-04-05 19:06 Re: SQLSetPos 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