db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r414624 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4: CallableStatementTest.java ResultSetTest.java TestPreparedStatementMethods.java
Date Thu, 15 Jun 2006 15:51:49 GMT
Author: rhillegas
Date: Thu Jun 15 08:51:48 2006
New Revision: 414624

URL: http://svn.apache.org/viewvc?rev=414624&view=rev
Log:
DERBY-1417: committed derby-1417-01-castsInTests, which adds some casts to some jdbc4 tests
so that the tests will compile when the new streaming overloads turn up in a future build
of jdk1.6

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java?rev=414624&r1=414623&r2=414624&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
Thu Jun 15 08:51:48 2006
@@ -377,7 +377,7 @@
     public void testSetBlobNotImplemented()
         throws SQLException {
         try {
-            cStmt.setBlob("some-parameter-name", null);
+            cStmt.setBlob("some-parameter-name", (Blob)null);
             fail("CallableStatement.setBlob(String, Blob) " +
                  "should not be implemented");
         } catch (SQLFeatureNotSupportedException sfnse) {
@@ -388,7 +388,7 @@
     public void testSetClobNotImplemented()
         throws SQLException {
         try {
-            cStmt.setClob("some-parameter-name", null);
+            cStmt.setClob("some-parameter-name", (Clob)null);
             fail("CallableStatement.setClob(String, Clob) " +
                  "should not be implemented");
         } catch (SQLFeatureNotSupportedException sfnse) {
@@ -410,7 +410,7 @@
     public void testSetNClobNClobNotImplemented()
         throws SQLException {
         try {
-            cStmt.setNClob("some-parameter-name", null);
+            cStmt.setNClob("some-parameter-name", (NClob)null);
             fail("CallableStatement.setNClob(String, NClob) " +
                  "should not be implemented");
         } catch (SQLFeatureNotSupportedException sfnse) {

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java?rev=414624&r1=414623&r2=414624&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java
Thu Jun 15 08:51:48 2006
@@ -184,7 +184,7 @@
     public void testUpdateNClobNotIntImplemented()
         throws SQLException {
         try {
-            rs.updateNClob(1, null);
+            rs.updateNClob(1, (NClob)null);
             fail("ResultSet.updateNClob(int, NClob) " +
                  "should not be implemented");
         } catch (SQLFeatureNotSupportedException sfnse) {
@@ -195,7 +195,7 @@
     public void testUpdateNClobStringNotImplemented()
         throws SQLException {
         try {
-            rs.updateNClob("some-column-name", null);
+            rs.updateNClob("some-column-name", (NClob)null);
             fail("ResultSet.updateNClob(String, NClob) " +
                  "should not be implemented");
         } catch (SQLFeatureNotSupportedException sfnse) {

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java?rev=414624&r1=414623&r2=414624&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java
Thu Jun 15 08:51:48 2006
@@ -97,7 +97,7 @@
     }
     void t_setNClob1() {
         try {
-            ps.setNClob(0,null);
+            ps.setNClob(0,(NClob)null);
             System.out.println("UnImplemented Exception not thrown in code");
         } catch(SQLException e) {
             if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) {



Mime
View raw message