Mercurial > hg > monetdb-java
comparison tests/Test_CisValid.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 |
comparison
equal
deleted
inserted
replaced
390:6199e0be3c6e | 391:f523727db392 |
---|---|
12 /* Test that after an error has occurred during a transaction, one can | 12 /* Test that after an error has occurred during a transaction, one can |
13 * still test if the connection is valid or not. | 13 * still test if the connection is valid or not. |
14 * The function Connection.isValid() should only return TRUE or FALSE. It | 14 * The function Connection.isValid() should only return TRUE or FALSE. It |
15 * shall never alter the state of this connection */ | 15 * shall never alter the state of this connection */ |
16 public static void main(String[] args) throws Exception { | 16 public static void main(String[] args) throws Exception { |
17 // Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); // not needed anymore for self registering JDBC drivers | |
18 Connection conn = DriverManager.getConnection(args[0]); | 17 Connection conn = DriverManager.getConnection(args[0]); |
19 Statement stmt = conn.createStatement(); | 18 Statement stmt = conn.createStatement(); |
20 | 19 |
21 try { | 20 try { |
22 conn.setAutoCommit(false); // start a transaction | 21 conn.setAutoCommit(false); // start a transaction |