Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 71739 invoked from network); 8 Oct 2008 08:44:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2008 08:44:42 -0000 Received: (qmail 19379 invoked by uid 500); 8 Oct 2008 08:44:41 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 19364 invoked by uid 500); 8 Oct 2008 08:44:41 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 19353 invoked by uid 99); 8 Oct 2008 08:44:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 01:44:41 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of contact@genux.fr designates 88.191.42.248 as permitted sender) Received: from [88.191.42.248] (HELO genux.fr) (88.191.42.248) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 08:43:37 +0000 Received: from [200.190.12.96] (unknown [212.51.168.10]) by genux.fr (Postfix) with ESMTP id CFA144C014 for ; Wed, 8 Oct 2008 10:44:35 +0200 (CEST) Message-ID: <48EC72BD.4080406@genux.fr> Date: Wed, 08 Oct 2008 10:43:41 +0200 From: Laurent Marchal User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Re: commit() when autocommit is enabled References: <8F798BFDA851B943B3A1B2510E92878509A21764@airmail> In-Reply-To: <8F798BFDA851B943B3A1B2510E92878509A21764@airmail> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I had a similar error, i was never able to reproduce. An exception saying a commit was attempted while autocommit is on. Occured only 1 time with my application and SQL Server. Scott Anderson wrote: > I'm working on a path to add generated PK support to SQLite, but I've > come across an issue with commit() - for some reason, autocommit is on, > but Cayenne is still trying to call commit(), which causes an exception. > An effective workaround is to re-check getAutoCommit() in > ConnectionWrapper.commit() before calling connection.commit(), but I'm > curious to know whether this behavior is actually even illegal to begin > with, and if so, whether Cayenne already attempts to avoid this case. >