You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/10/08 09:18:18 UTC
svn commit: r582733 - in
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests:
master/statementJdbc20.out tests/jdbcapi/statementJdbc20.java
Author: kahatlen
Date: Mon Oct 8 00:18:17 2007
New Revision: 582733
URL: http://svn.apache.org/viewvc?rev=582733&view=rev
Log:
DERBY-957: Long passed into an exception gets displayed using locale specific formatting. i18n/locale issue
Check the SQLSTATE of expected exceptions instead of printing the message.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out?rev=582733&r1=582732&r2=582733&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/statementJdbc20.out Mon Oct 8 00:18:17 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/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java?rev=582733&r1=582732&r2=582733&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/statementJdbc20.java Mon Oct 8 00:18:17 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{