Mercurial > hg > monetdb-java
diff tests/Test_PStimezone.java @ 391:f523727db392
Moved Java classes from packages starting with nl.cwi.monetdb.* to package org.monetdb.*
This naming complies to the Java Package Naming convention as MonetDB's main website is www.monetdb.org.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 12 Nov 2020 22:02:01 +0100 (2020-11-12) |
parents | 54137aeb1f92 |
children | bf9f6b6ecf40 |
line wrap: on
line diff
--- a/tests/Test_PStimezone.java +++ b/tests/Test_PStimezone.java @@ -18,12 +18,10 @@ public class Test_PStimezone { // savings corrections TimeZone.setDefault(TimeZone.getTimeZone("UTC")); - // Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); // not needed anymore for self registering JDBC drivers Connection con = DriverManager.getConnection(args[0]); Statement stmt = con.createStatement(); PreparedStatement pstmt; ResultSet rs = null; - //DatabaseMetaData dbmd = con.getMetaData(); con.setAutoCommit(false); // >> false: auto commit was just switched off @@ -31,6 +29,7 @@ public class Test_PStimezone { try { stmt.executeUpdate("CREATE TABLE table_Test_PStimezone (ts timestamp, tsz timestamp with time zone, t time, tz time with time zone)"); + stmt.close(); } catch (SQLException e) { System.out.println(e); System.out.println("Creation of test table failed! :(");