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 468F49DC841 for ; Thu, 19 Jan 2006 10:00:19 -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 21848-05 for ; Thu, 19 Jan 2006 10:00:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 4EAEA9DC80D for ; Thu, 19 Jan 2006 10:00:14 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EzaKP-0004Z9-OZ for pgsql-odbc@postgresql.org; Thu, 19 Jan 2006 14:59:53 +0100 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jan 2006 14:59:53 +0100 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jan 2006 14:59:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: Marc Herbert Subject: BEGIN and autocommit(false) (was: some question about SavePoint ?) Date: Thu, 19 Jan 2006 15:03:54 +0100 Lines: 53 Message-ID: References: <43CF0B0B.6000101@necas.nec.com.cn> <20060119111957.GA31571@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:hZy125ElBX3phchY0RDQ4s6n6r8= X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.384 required=5 tests=[AWL=0.131, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.384 X-Spam-Level: * X-Archive-Number: 200601/184 X-Sequence-Number: 6999 Ludek Finstrle writes: >> 1. set SQL_AUTOCOMMIT_OFF > > Yes you do ... When you use autocommit = off you have to start and end > transaction manually. Wrong: in ODBC, you just have to "end" transactions manually, you don't have to start them, they are implicitely started when the previous one ends. In ODBC (and JDBC), you are ALWAYS inside a transaction, there is no such thing as a transactional "no man's land" from an ODBC interface point of view (internal, hidden implementation details may differ).