Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 9341 invoked from network); 28 Oct 2010 18:34:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 18:34:43 -0000 Received: (qmail 49825 invoked by uid 500); 28 Oct 2010 18:34:42 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 49797 invoked by uid 500); 28 Oct 2010 18:34:42 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 49789 invoked by uid 99); 28 Oct 2010 18:34:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 18:34:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 18:34:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9SIYMTO012008 for ; Thu, 28 Oct 2010 18:34:22 GMT Message-ID: <13918340.125511288290862305.JavaMail.jira@thor> Date: Thu, 28 Oct 2010 14:34:22 -0400 (EDT) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Assigned: (TORQUE-153) Fail if null connection is supplied to a method In-Reply-To: <2132800.125491288290861751.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox reassigned TORQUE-153: --------------------------------- Assignee: Thomas Fox > Fail if null connection is supplied to a method > ----------------------------------------------- > > Key: TORQUE-153 > URL: https://issues.apache.org/jira/browse/TORQUE-153 > Project: Torque > Issue Type: Improvement > Components: Runtime > Reporter: Thomas Fox > Assignee: Thomas Fox > > Current behaviour: Methods with a connection argument silently fetch a new connection if the passed connection is null > New behaviour: These methods should throw an exception if the passed connection is null > Rationale: these methods will be only needed if a method should be executed in a transaction context. If one assumes that a transaction is open (connection is not null), but it is not (connection == null), it is a bad idea to silently start one as this behaviour is very difficult to tell from the correct one. A clean failure is much easier to test for. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org