X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 77F809DCDCB for ; Mon, 19 Dec 2005 03:54:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79908-05 for ; Mon, 19 Dec 2005 03:54:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gate.solvo.ru (gate.solvo.ru [195.201.44.254]) by postgresql.org (Postfix) with ESMTP id 1534C9DCDA8 for ; Mon, 19 Dec 2005 03:54:38 -0400 (AST) Received: from tiger.solvo.ru (tiger.solvo.ru [195.201.44.86]) by gate.solvo.ru (8.12.8/8.12.8) with ESMTP id jBJ7sWpv003782; Mon, 19 Dec 2005 10:54:38 +0300 Received: by tiger.solvo.ru (Postfix, from userid 504) id 88DD9326872; Mon, 19 Dec 2005 10:54:32 +0300 (MSK) Received: from crown (dual.solvo.ru [195.201.44.111]) by tiger.solvo.ru (Postfix) with ESMTP id DEA22326853; Mon, 19 Dec 2005 10:54:31 +0300 (MSK) From: "Eugene Fokin" To: "'Ludek Finstrle'" Cc: Subject: Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction Date: Mon, 19 Dec 2005 10:54:32 +0300 Message-ID: <001f01c60471$72e69f10$dd2cc9c3@solvo.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <20051218200900.GB9020@soptik.pzkagis.cz> Importance: Normal X-Milter: Spamilter X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.222 required=5 tests=[AWL=0.222] X-Spam-Score: 0.222 X-Spam-Level: X-Archive-Number: 200512/236 X-Sequence-Number: 6715 I have PostgreSQL version 7.4.5. Also, I have "UseDeclareFetch=1" option. Try to turn it on, and I think you'll see BEGIN before "select version()". Regards. -- Eugene Fokin SOLVO Ltd. -----Original Message----- From: Ludek Finstrle [mailto:luf@pzkagis.cz] Sent: Sunday, December 18, 2005 11:09 PM To: Eugene Fokin Cc: pgsql-odbc@postgresql.org Subject: Re: [ODBC] [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction > I saw in the PostgreSQL log file, either in auto_commit mode on, > psqlodbc generates implicit transaction for each "data change statement" > and implicit transaction for whole bunch of consequent "select > statmenets". It's strange. Isn't it some misunderstanding? I try it here now and I see no start transaction in PgSQL log file. I have PgSQL 8.1 on Win32 and psqlodbc 8.01.0105 (I think it doesn't matter which 8.1 version). What versions do you have? > So, it starts transaction at begin and doesn't close it before first > "data change statement". If I'll cancel one of first select, I'll lose > DateStyle. My PgSQL log: 2005-12-18 22:02:30 LOG: autovacuum: processing database "postgres" 2005-12-18 22:03:05 LOG: statement: select version() 2005-12-18 22:03:05 LOG: statement: set DateStyle to 'ISO' 2005-12-18 22:03:05 LOG: statement: set geqo to 'OFF' 2005-12-18 22:03:05 LOG: statement: set extra_float_digits to 2 2005-12-18 22:03:05 LOG: statement: select oid from pg_type where typname='lo' 2005-12-18 22:03:06 LOG: statement: select pg_client_encoding() 2005-12-18 22:03:06 LOG: statement: set client_encoding to 'WIN1250' 2005-12-18 22:03:18 LOG: statement: select nothing from notable 2005-12-18 22:03:18 ERROR: relation "notable" does not exist 2005-12-18 22:03:27 LOG: statement: rollback 2005-12-18 22:03:27 WARNING: there is no transaction in progress Regards, Luf