Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 59692 invoked from network); 8 Oct 2007 07:22:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2007 07:22:48 -0000 Received: (qmail 37926 invoked by uid 500); 8 Oct 2007 07:22:36 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 37904 invoked by uid 500); 8 Oct 2007 07:22:36 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 37893 invoked by uid 99); 8 Oct 2007 07:22:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 00:22:36 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 07:22:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5330F1A9832; Mon, 8 Oct 2007 00:21:48 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r582734 - in /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests: master/statementJdbc20.out tests/jdbcapi/statementJdbc20.java Date: Mon, 08 Oct 2007 07:21:47 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071008072148.5330F1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kahatlen Date: Mon Oct 8 00:21:46 2007 New Revision: 582734 URL: http://svn.apache.org/viewvc?rev=582734&view=rev Log: DERBY-957: Long passed into an exception gets displayed using locale specific formatting. i18n/locale issue Merged from trunk (rev 582733). Modified: db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java Modified: db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out?rev=582734&r1=582733&r2=582734&view=diff ============================================================================== --- db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out (original) +++ db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out Mon Oct 8 00:21:46 2007 @@ -1,8 +1,4 @@ Test statementJdbc20 starting -PASS -- expected exception -SQLSTATE(XJ065): java.sql.SQLException: Invalid parameter value '-1,000' for Statement.setFetchSize(int rows). -PASS -- expected exception -SQLSTATE(XJ064): java.sql.SQLException: Invalid parameter value '-1,000' for setFetchDirection(int direction). Fetch Size 25 Fetch Direction 1001 1 2 3.1 @@ -14,8 +10,6 @@ Result Set Fetch Direction 1001 PASS -- expected exception SQLSTATE(XJ062): java.sql.SQLException: Invalid parameter value '100' for ResultSet.setFetchSize(int rows). -PASS -- expected exception -SQLSTATE(XJ062): java.sql.SQLException: Invalid parameter value '-2,000' for ResultSet.setFetchSize(int rows). PASS -- expected exception SQLSTATE(XJ061): java.sql.SQLException: The 'setFetchDirection()' method is only allowed on scroll cursors. PASS -- expected exception Modified: db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java?rev=582734&r1=582733&r2=582734&view=diff ============================================================================== --- db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java (original) +++ db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java Mon Oct 8 00:21:46 2007 @@ -71,16 +71,18 @@ //Error testing : set wrong values .. try{ stmt.setFetchSize(-1000); + System.out.println("setFetchSize(-1000) expected to fail"); } catch(SQLException e){ - dumpExpectedSQLExceptions(e); + BaseJDBCTestCase.assertSQLState("XJ065", e); } try{ stmt.setFetchDirection(-1000); + System.out.println("setFetchDirection(-1000) expected to fail"); } catch(SQLException e){ - dumpExpectedSQLExceptions(e); + BaseJDBCTestCase.assertSQLState("XJ064", e); } @@ -122,9 +124,10 @@ //Error testing : set wrong values .. try{ rs.setFetchSize(-2000); + System.out.println("setFetchSize(-2000) expected to fail"); } catch(SQLException e){ - dumpExpectedSQLExceptions(e); + BaseJDBCTestCase.assertSQLState("XJ062", e); } try{