pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Richard Huxton <dev@archonet.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Client software vs cursor problem?
Date: Thu, 26 Jun 2003 12:43:42 +0900
Message-ID: <3EFA6BEE.1E3ED48F@tpf.co.jp> (raw)
References: <200306251140.06270.dev@archonet.com>

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.



view thread (5+ messages)  latest in thread

Message-ID: <3EFA6BEE.1E3ED48F@tpf.co.jp>
Permalink:  ../3EFA6BEE.1E3ED48F@tpf.co.jp/
Also on:    postgresql.org/message-id/3EFA6BEE.1E3ED48F@tpf.co.jp

 · 

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, dev@archonet.com
  Subject: Re: Client software vs cursor problem?
  In-Reply-To: <3EFA6BEE.1E3ED48F@tpf.co.jp>
  References: <200306251140.06270.dev@archonet.com> <3EFA6BEE.1E3ED48F@tpf.co.jp>

* 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