Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61255 invoked from network); 15 Feb 2008 17:01:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2008 17:01:31 -0000 Received: (qmail 70930 invoked by uid 500); 15 Feb 2008 17:01:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 70899 invoked by uid 500); 15 Feb 2008 17:01:24 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 70888 invoked by uid 99); 15 Feb 2008 17:01:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 09:01:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msatoor@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 17:00:53 +0000 Received: by ug-out-1314.google.com with SMTP id s2so1223034uge.22 for ; Fri, 15 Feb 2008 09:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Kin7Rpcvn2WZu3T1arqIgzDPL+G86UtiFygQvIyOZOc=; b=dCjx6GEZcRig6KzrB/mibY6AuQrRQnOgHCNsDaiv97VqBMe2ncOz8i2tOqwxlx8yA/OymijV3J1D5scJdzVyr78ft4je1vAHlo/CMhI64vpnFeDzooDXaNKK3hN3bot4Ikbpl/0e8UqCs6MLVNL/cYJct9c/6ddWNV5RDWa2q9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R0NKB/Sat39Kyxy0dsuQlRoswtQWgYsSH9xPA4cjGo5XKzfeiKuJEhB89HqZEMP5LFnw10vlTCK3xsnVN/Ho8mcn4NxxdNY6lbuN/g7NY4M9G7mWBQ4SdPs22sQDP6uNzgI1mI6gOm2btJ/qnKEJQNuUjrZPEICUC4sjrSPYM2M= Received: by 10.142.177.7 with SMTP id z7mr2491497wfe.0.1203094858923; Fri, 15 Feb 2008 09:00:58 -0800 (PST) Received: by 10.142.125.19 with HTTP; Fri, 15 Feb 2008 09:00:58 -0800 (PST) Message-ID: Date: Fri, 15 Feb 2008 09:00:58 -0800 From: "Mamta Satoor" To: derby-dev@db.apache.org Subject: Re: svn commit: r627673 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/LangProcedureTest.java In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080214062451.F229B1A9832@eris.apache.org> <47B47600.80002@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org I will soon make a checkin for the resultset from the procedure which shows that in trunk, after checkin 602991 for DERBY-1585, a procedure does not return a resultset if there was a rollbck inside the procedure with resultset creation before rollback. This behavior is different than what happens in 10.2 codeline. In 10.2, a procedure will return a *closed* resultset if there was a rollback inside the procedure. From Dan's earlier comment in this thread([Note a procedure does not return closed result sets]), it appears that trunk is behaving correctly and 10.2's behavior was incorrect. Mamta On 2/14/08, Mamta Satoor wrote: > Dan, you must have read my mind about dynamic resultset in my test > case. I didn't on purpose add anything for that resultset because I am > getting ready to file a jira entry for dynamic resultset and rollback > inside java procedure. A rollback inside proc in 10.1 returns a closed > dynamic resultset but the same thing in trunk returns a null object > for dynamic resultset. I think I am very close to finding what commit > caused this behavior. I need little more time to confirm that and then > file a jira entry which will modify the test I have added > > Mamta > On 2/14/08, Daniel John Debrunner wrote: > > mamta@apache.org wrote: > > > Author: mamta > > > Date: Wed Feb 13 22:24:50 2008 > > > New Revision: 627673 > > > > > > URL: http://svn.apache.org/viewvc?rev=627673&view=rev > > > Log: > > > DERBY-3304 and DERBY-3414 > > > + s > > > + .execute("create procedure procWithRollback(p1 int) parameter style JAVA READS SQL DATA dynamic result sets 1 language java external name 'org.apache.derbyTesting.functionTests.tests.lang.LangProcedureTest.rollbackInsideProc'"); > > > + drs1 = prepareCall("CALL procWithRollback(3)"); > > > + drs1.execute(); > > > + rs = drs1.getResultSet(); > > > > This fixture never asserts that the procedure does not return any result > > sets. It fetches rs, but never does anything with it. Instead of > > fetching rs, it should be using: > > JDBC.assertNoMoreResults(s); > > > > There's a chance though that it may require DERBY-3404 to be fixed first. > > > > [Note a procedure does not return closed result sets] > > > > Dan. > > >