test cases for trie index
[csql.git] / test / jdbc / Connection / ConnTest17.java
blob874161215719fa70c929c14269a33713bb103fa7
1 //Close the connection and they call commit(). It should fail.
2 //Author: XieLiang
3 import java.sql.*;
4 public class ConnTest17
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con = DriverManager.getConnection("jdbc:csql", "root", "manager");
12 if ( con == null )
13 System.exit(1);
14 con.close();
15 con.commit();
16 System.exit(1);
17 }catch(Exception e) {
18 System.out.println(e.getMessage());
19 e.getStackTrace();
20 if (e.getMessage().equals("Invalid state")) System.exit(0);
21 else System.exit(1);