Skip to Content.
Sympa Menu

freetds - [JDBC] patch for t0036

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: [JDBC] patch for t0036
  • Date: Wed, 19 Jul 2000 15:05:54 -0400 (EDT)

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
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
}
}



  • [JDBC] patch for t0036, Bob Kline, 07/19/2000

Archive powered by MHonArc 2.6.24.

Top of Page