pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedClient software vs cursor problem?
5+ messages / 2 participants
[nested] [flat]
* Client software vs cursor problem?
@ 2003-06-25 10:40 Richard Huxton <dev@archonet.com>
2003-06-26 03:43 ` Re: Client software vs cursor problem? Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 1 reply; 5+ messages in thread
From: Richard Huxton @ 2003-06-25 10:40 UTC (permalink / raw)
To: pgsql-odbc
I've got a client trying to access PG through ODBC from something called ENVOX
(a telecomms IVR system). It lets you build control scripts visually by
dragging/dropping boxes and setting some params.
Now, if he uses a SELECT box to open a (static) cursor then an INSERT box to
add a record it fails, but *only* if the select returns no records. If the
INSERT box is replaced by a "RAWSQL" box he can successfully build his own
insert statement and run it. He's happy enough with this workaround, but it'd
be good if we can figure out what's happening.
The error he gets is "row value out of range" which appears to be HY107 from
googling. This suggests to me the INSERT box is trying to move to the
first/last row or similar and failing because there are no rows.
Unfortunately I'm no ODBC expert and can't see what code underlies the box.
Two questions:
1. Does it sound like I'm on the right track?
2. Would getting him to turn on odbc-logging at his end help me to diagnose?
(he's remote from me).
Oh - we've tried variations on the cursor type and cursor-concurrency settings
and they seem to make no difference.
TIA
--
Richard Huxton
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Client software vs cursor problem?
2003-06-25 10:40 Client software vs cursor problem? Richard Huxton <dev@archonet.com>
@ 2003-06-26 03:43 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-06-26 09:14 ` Re: Client software vs cursor problem? Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 5+ messages in thread
From: Hiroshi Inoue @ 2003-06-26 03:43 UTC (permalink / raw)
To: Richard Huxton <dev@archonet.com>; +Cc: pgsql-odbc
Which version of psqlodbc driver are you using ?
regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/
Richard Huxton wrote:
>
> I've got a client trying to access PG through ODBC from something called ENVOX
> (a telecomms IVR system). It lets you build control scripts visually by
> dragging/dropping boxes and setting some params.
>
> Now, if he uses a SELECT box to open a (static) cursor then an INSERT box to
> add a record it fails, but *only* if the select returns no records. If the
> INSERT box is replaced by a "RAWSQL" box he can successfully build his own
> insert statement and run it. He's happy enough with this workaround, but it'd
> be good if we can figure out what's happening.
>
> The error he gets is "row value out of range" which appears to be HY107 from
> googling. This suggests to me the INSERT box is trying to move to the
> first/last row or similar and failing because there are no rows.
> Unfortunately I'm no ODBC expert and can't see what code underlies the box.
>
> Two questions:
> 1. Does it sound like I'm on the right track?
> 2. Would getting him to turn on odbc-logging at his end help me to diagnose?
> (he's remote from me).
>
> Oh - we've tried variations on the cursor type and cursor-concurrency settings
> and they seem to make no difference.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Client software vs cursor problem?
2003-06-25 10:40 Client software vs cursor problem? Richard Huxton <dev@archonet.com>
2003-06-26 03:43 ` Re: Client software vs cursor problem? Hiroshi Inoue <Inoue@tpf.co.jp>
@ 2003-06-26 09:14 ` Richard Huxton <dev@archonet.com>
2003-06-30 04:14 ` Re: Client software vs cursor problem? Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 1 reply; 5+ messages in thread
From: Richard Huxton @ 2003-06-26 09:14 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
On Thursday 26 Jun 2003 4:43 am, Hiroshi Inoue wrote:
> Which version of psqlodbc driver are you using ?
Can't get the details until this evening, but very recent - about a month old.
--
Richard Huxton
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Client software vs cursor problem?
2003-06-25 10:40 Client software vs cursor problem? Richard Huxton <dev@archonet.com>
2003-06-26 03:43 ` Re: Client software vs cursor problem? Hiroshi Inoue <Inoue@tpf.co.jp>
2003-06-26 09:14 ` Re: Client software vs cursor problem? Richard Huxton <dev@archonet.com>
@ 2003-06-30 04:14 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-06-30 06:35 ` Re: Client software vs cursor problem? Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 5+ messages in thread
From: Hiroshi Inoue @ 2003-06-30 04:14 UTC (permalink / raw)
To: Richard Huxton <dev@archonet.com>; +Cc: pgsql-odbc
Richard Huxton wrote:
>
> On Thursday 26 Jun 2003 4:43 am, Hiroshi Inoue wrote:
> > Which version of psqlodbc driver are you using ?
>
> Can't get the details until this evening, but very recent - about a month old.
There was a fix recently.
Please try the snapshot dll at
http://www.geocities.jp/inocchichichi/psqlodbc/ .
regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Client software vs cursor problem?
2003-06-25 10:40 Client software vs cursor problem? Richard Huxton <dev@archonet.com>
2003-06-26 03:43 ` Re: Client software vs cursor problem? Hiroshi Inoue <Inoue@tpf.co.jp>
2003-06-26 09:14 ` Re: Client software vs cursor problem? Richard Huxton <dev@archonet.com>
2003-06-30 04:14 ` Re: Client software vs cursor problem? Hiroshi Inoue <Inoue@tpf.co.jp>
@ 2003-06-30 06:35 ` Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 5+ messages in thread
From: Richard Huxton @ 2003-06-30 06:35 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
On Monday 30 Jun 2003 5:14 am, Hiroshi Inoue wrote:
> Richard Huxton wrote:
> > On Thursday 26 Jun 2003 4:43 am, Hiroshi Inoue wrote:
> > > Which version of psqlodbc driver are you using ?
> >
> > Can't get the details until this evening, but very recent - about a month
> > old.
>
> There was a fix recently.
> Please try the snapshot dll at
> http://www.geocities.jp/inocchichichi/psqlodbc/ .
Thanks Hiroshi, I'll give that a go (probably tomorrow).
--
Richard Huxton
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-06-30 06:35 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-25 10:40 Client software vs cursor problem? Richard Huxton <dev@archonet.com>
2003-06-26 03:43 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-06-26 09:14 ` Richard Huxton <dev@archonet.com>
2003-06-30 04:14 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-06-30 06:35 ` Richard Huxton <dev@archonet.com>
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