[JDBC] patch for t0036

Bob Kline bkline at rksystems.com
Wed Jul 19 15:05:54 EDT 2000


The attached patch fixes a problem with t0036.  Failures to drop a table
throw SQLException, not SQLWarning now.  Also, comparison of the
exception string with a specific English-language string fails if some
other language is used for the DBMS installation.

-- 
Bob Kline
mailto:bkline at rksystems.com
http://www.rksystems.com
-------------- next part --------------
diff -Naur original/t0036.java modified/t0036.java
--- original/t0036.java	Mon Mar 08 19:58:39 1999
+++ modified/t0036.java	Wed Jul 19 14:48:25 2000
@@ -38,13 +38,9 @@
                                + table);
             passed = false;
          }
-         catch (SQLWarning e)
+         catch (SQLException e)
          {
-            if (! (e.getMessage().startsWith("Cannot drop the table '"+table+"', because it does")))
-            {
-               throw e;
-            }
-            // System.out.println(e.getMessage());
+            // Ignore
          }
       }
       


More information about the FreeTDS mailing list