Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.9.1/8.9.1) with ESMTP id LAA02523 for ; Tue, 12 Jan 1999 11:24:15 -0500 (EST) (envelope-from byronn@insightdist.com) Received: from insightdist.com (root@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id LAA11556 for pgsql-interfaces@postgreSQL.org; Tue, 12 Jan 1999 11:19:00 -0500 (EST) Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA23207; Tue, 12 Jan 1999 10:48:40 -0500 Received: from ppp0_ceodev by ceodev (AIX 4.1/UCB 5.64/4.03) id AA78206; Tue, 12 Jan 1999 10:42:57 -0500 Message-Id: <369B706B.BEE07230@insightdist.com> Date: Tue, 12 Jan 1999 10:55:23 -0500 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: sferac@bo.nettuno.it Cc: "pgsql-interfaces@postgreSQL.org" Subject: Re: [INTERFACES] PSQLODBC and TRANSACTIONS References: <369B1C13.9E56EE17@sferacarta.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jose' Soares wrote: > Hi, > > I'm trying transactions using M$-access and PSQLODBC without success, > Seems that backend locks itself > by opening two connections to work on the same table. > > I have a table with 3 rows: > > codice nome cap > --------------------------- > 1 pippo 0 > 2 pluto 0 > 3 topolino 0 > --------------------------- > The logfile shows that Access is using Manual Commit. The last two lines show a separate connection being made and then a select statement on "operatori" table. But it is still locked from the other connection. (see below) I don't think there is anything the driver can do about this. You need Vladim's new locking code! I think that is going to be in the next version of Postgres. Byron BEGIN UPDATE "operatori" SET "cap"='1' WHERE "codice" = '1 ' SELECT "codice","cap" FROM "operatori" WHERE "codice" = '3 ' UPDATE "operatori" SET "cap"='1' WHERE "codice" = '3 ' SELECT "codice","cap" FROM "operatori" WHERE "codice" = '2 ' UPDATE "operatori" SET "cap"='1' WHERE "codice" = '2 ' SQLDriverConnect(out)='DSN=PostgreSQL;DATABASE=hygea;SERVER=verde;PORT=5432;UID=marco;PWD=;READONLY=0;PROTOCOL=6.4;FAKEOIDINDEX=0;SHOWOIDCOLUMN=0;ROWVERSIONING=0;SHOWSYSTEMTABLES=0;CONNSETTINGS=set+ksqo+to+%27on%27%3b' SELECT "operatori"."codice" FROM "operatori"