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 49CA530FAD4 for ; Wed, 25 Jun 2003 10:40:20 +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 09770-06 for ; Wed, 25 Jun 2003 07:40:09 -0300 (ADT) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by svr1.postgresql.org (Postfix) with ESMTP id 9446C30FBB6 for ; Wed, 25 Jun 2003 07:40:09 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 19V7hA-000441-0U for pgsql-odbc@postgresql.org; Wed, 25 Jun 2003 11:40:09 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 846A416265 for ; Wed, 25 Jun 2003 11:40:07 +0100 (BST) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id E235516244 for ; Wed, 25 Jun 2003 11:40:06 +0100 (BST) Content-Type: text/plain; charset="us-ascii" From: Richard Huxton Organization: Archonet Ltd To: pgsql-odbc@postgresql.org Subject: Client software vs cursor problem? Date: Wed, 25 Jun 2003 11:40:06 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306251140.06270.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=RCVD_IN_UNCONFIRMED_DSBL, USER_AGENT_KMAIL X-Spam-Level: * X-Archive-Number: 200306/66 X-Sequence-Number: 3040 I've got a client trying to access PG through ODBC from something called EN= VOX=20 (a telecomms IVR system). It lets you build control scripts visually by=20 dragging/dropping boxes and setting some params. Now, if he uses a SELECT box to open a (static) cursor then an INSERT box t= o=20 add a record it fails, but *only* if the select returns no records. If the= =20 INSERT box is replaced by a "RAWSQL" box he can successfully build his own= =20 insert statement and run it. He's happy enough with this workaround, but it= 'd=20 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 fro= m=20 googling. This suggests to me the INSERT box is trying to move to the=20 first/last row or similar and failing because there are no rows.=20 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= ?=20 (he's remote from me). Oh - we've tried variations on the cursor type and cursor-concurrency setti= ngs=20 and they seem to make no difference. TIA --=20 Richard Huxton