Changeset: fbee64ee4582 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fbee64ee4582
Modified Files:
        java/tests/Test_Rtimedate.java
Branch: Apr2011
Log Message:

javatest: print connection warning stack if not empty

date/time/timestamp parsing may generate warnings
display them if so


diffs (16 lines):

diff --git a/java/tests/Test_Rtimedate.java b/java/tests/Test_Rtimedate.java
--- a/java/tests/Test_Rtimedate.java
+++ b/java/tests/Test_Rtimedate.java
@@ -81,6 +81,12 @@
                        System.out.println("8. " + rs.getString("id") + ", " + 
rs.getString("vc") + ", " + rs.getTime("vc"));
                        // date -> date should be fine
                        System.out.println("9. " + rs.getString("id") + ", " + 
rs.getString("vc") + ", " + rs.getDate("vc"));
+
+                       SQLWarning w = con.getWarnings();
+                       while (w != null) {
+                               System.out.println("warning: " + w.toString());
+                               w = w.getNextWarning();
+                       }
                } catch (SQLException e) {
                        System.out.println("failed :( "+ e.getMessage());
                        System.out.println("ABORTING TEST!!!");
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to