db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r429401 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/JDBC.java
Date Mon, 07 Aug 2006 17:17:44 GMT
Author: djd
Date: Mon Aug  7 10:17:43 2006
New Revision: 429401

URL: http://svn.apache.org/viewvc?rev=429401&view=rev
Log:
java.sql.Savepoint is the correct class to check to see if JDBC 3 and JSR 619 is supported,
not ParameterMetaData

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/JDBC.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/JDBC.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/JDBC.java?rev=429401&r1=429400&r2=429401&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/JDBC.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/JDBC.java
Mon Aug  7 10:17:43 2006
@@ -37,11 +37,11 @@
                            = haveClass("java.sql.Driver");
     
     /**
-     * Does the ParameterMetaData class exist, indicates
+     * Does the Savepoint class exist, indicates
      * JDBC 3 (or JSR 169). 
      */
-    private static final boolean HAVE_PARAMETER_META_DATA
-                           = haveClass("java.sql.ParameterMetaData");
+    private static final boolean HAVE_SAVEPOINT
+                           = haveClass("java.sql.Savepoint");
 
     /**
      * Does the java.sql.SQLXML class exist, indicates JDBC 4. 
@@ -83,7 +83,7 @@
 	public static boolean vmSupportsJDBC3()
 	{
 		return HAVE_DRIVER
-		       && HAVE_PARAMETER_META_DATA;
+		       && HAVE_SAVEPOINT;
 	}
 
 	/**
@@ -105,7 +105,7 @@
 	public static boolean vmSupportsJSR169()
 	{
 		return !HAVE_DRIVER
-		       && HAVE_PARAMETER_META_DATA;
+		       && HAVE_SAVEPOINT;
 	}	
 	
 	/**



Mime
View raw message