Received: from connectnet2.connectnet.com (spool.connectnet.com [207.110.0.12]) by hub.org (8.9.3/8.9.3) with ESMTP id NAA97094 for ; Thu, 16 Dec 1999 13:37:28 -0500 (EST) (envelope-from bbaldwin@indyme.com) Received: from INDYMEEXCH.INDY.COM (indymemail.indyme.com [207.110.14.226]) by connectnet2.connectnet.com (8.9.1/CONNECTnet-4.0/THROTTLE) with ESMTP id KAA11496 for ; Thu, 16 Dec 1999 10:37:22 -0800 (PST) Received: by INDYMEEXCH with Internet Mail Service (5.5.2650.21) id ; Thu, 16 Dec 1999 10:37:51 -0800 Message-ID: <319A9588FB5ED2119FAC00A0C912E3292785AF@INDYMEEXCH> From: Barry Baldwin To: pgsql-sql@postgresql.org Subject: RE: [SQL] TRANSACTIONS and TCP/IP Date: Thu, 16 Dec 1999 10:37:49 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-2" Hi, I would like to thank everyone for their responses. I was able to get it working by using the various suggestions I received. I had to turn off the ODBC drivers autocommit and then I could use the Tdatabase types' StartTransaction, Commit and RollBack methods. Thanks again everybody, Barry Barry Baldwin wrote: > Hi, > > I've got postgres 6.5.2 running on a Linux box and I'm developing a client > app in Delphi. The client sends SQL commands via TCP/IP. > I've tried starting a transaction by sending the BEGIN command and then I > update a table and then send a ROLLBACK command to try > and abort the transaction. It doesn't seem to be working. Even though I've > done a rollback the transaction still goes through. > > When I start the transaction I get this message on the Linux box console > NOTICE: BeginTransactionBlock and not in default state > > This indicates that there is a transaction already in process. I don't know > how that can be. > > When I issue the rollback command I get this message > NOTICE: UserAbortTransactionBlock and not in in-progress state > > This indicates that there is no transaction in progress. There sure should > be. > > I tried all of the above in psql and it works fine. Is this something that > just won't work over a TCP/IP connection? > > Any suggestions on how I can get transactions to work would be greatly > appreciated, > > TIA, > > Barry > > ************