X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 33C9330FDE4 for ; Thu, 26 Jun 2003 03:39:34 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 54863-07 for ; Thu, 26 Jun 2003 00:39:23 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 53AAB30FDD6 for ; Thu, 26 Jun 2003 00:39:09 -0300 (ADT) Received: (qmail 24231 invoked from network); 26 Jun 2003 03:39:07 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 26 Jun 2003 03:39:07 -0000 Received: from tpf.co.jp ([126.0.1.64]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id MAA17633; Thu, 26 Jun 2003 12:39:01 +0900 (JST) Message-ID: <3EFA6BEE.1E3ED48F@tpf.co.jp> Date: Thu, 26 Jun 2003 12:43:42 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Richard Huxton Cc: pgsql-odbc@postgresql.org Subject: Re: Client software vs cursor problem? References: <200306251140.06270.dev@archonet.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/67 X-Sequence-Number: 3041 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.