X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 945BF329D91 for ; Tue, 14 Sep 2004 20:50:56 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08766-07 for ; Tue, 14 Sep 2004 19:50:50 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id A7792329D3E for ; Tue, 14 Sep 2004 20:50:50 +0100 (BST) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 14 Sep 2004 15:27:24 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 14 Sep 2004 15:29:54 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id I41QD500.SAL for ; Tue, 14 Sep 2004 15:34:17 -0400 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 14 Sep 2004 15:34:16 -0400 Message-Id: <414747B6.3090207@us.michelin.com> Date: Tue, 14 Sep 2004 15:34:14 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lothar Behrens Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC SQLSetPos Delete problem References: <200409141837.i8EIbOJ11950@jedi.behrens.de> In-Reply-To: <200409141837.i8EIbOJ11950@jedi.behrens.de> Content-Type: multipart/mixed; boundary="------------080705070902000401060508" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200409/23 X-Sequence-Number: 4398 This is a multi-part message in MIME format. --------------080705070902000401060508 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I think you and we need details. You say the form uses cursors. This suggest to me that maybe you are trying to update a connected recordset, versus using a disconnected recordset. I hope this is not talking down to anyone, but a disconnected recordset is one where you get the records, then the server can forget about you. A connected recordset is keeping the connection alive until you are done with your recordset, that is close your form. I have always avoided connected recordsets for client-server applications. I use disconnected recordset when I want to read data. I use INSERT, UPDATE, AND DELETE statements (against primary keys and indexes) when I wish to modify data. My understanding is not perfectly clear on this, but I think that the PostgreSQL driver does not do connected recordsets. But the ODBC driver may fake it under certain conditions. It is suggested that there be OIDS on the server table. It is suggested that the server table have a primary key. It is suggested that row versioning be turned on in the ODBC driver. There are conditions where table row uniqueness is forced by the adding of a timestamp field that defaults to Now(). So while it may appear to a user that a database table is attached,... the behind the scenes is a sequence of row fetches, and discrete insert, update, delete statements that need to find the records to work on. To this end, and back to those details Does your table have OIDS? Does your table have a primary key? Have you turned on all the logging you can, client and server to see what is going on at lower levels? Are there options in your application wizard regarding connections? (I doubt we can help you with) Could you build the application in a different way to separate data reading transaction from data updating transactions? I hope that 1. I am not completely off the mark 2. that I have given you something to think about that you did not already have. Good Luck. Lothar Behrens wrote: >Hi, > >it seems that I did not get any help. Now I also like to say, that >If I test a Sybase Power++ Developer application with simple db form, >I get a crash in the Postgres ODBC driver. > >The form is created with the wizard and uses cursors. > >The driver seems to delete the record, but moving to next/prev record >fails. > >Who can help me ? > >Do you like to have the source ? >You can dounload it. > >I can try to debug the ODBC library, but I do not understand the full >source, so I need a little help. > >Thanks > >Lothar >---- My home: www.lollisoft.de ----------------------------- >Lothar Behrens | Independent: lothar.behrens@gmx.de >Rosmarinstr 3 | My public project: >40235 Düsseldorf | http://sourceforge.net/projects/lbdmf > | -> Need comments, please visit :-) > > >---------------------------(end of broadcast)--------------------------- >TIP 8: explain analyze is your friend > > --------------080705070902000401060508 Content-Type: text/x-vcard; charset=utf8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard --------------080705070902000401060508--