1 //Close the connection and then call preparedStatement(). It should fail
3 public class ConnTest19
5 public static void main(String
[] args
)
9 Class
.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con
= DriverManager
.getConnection("jdbc:csql://localhost:5678/csql", "root", "manager");
14 PreparedStatement pStmt
= null;
15 pStmt
= con
.prepareStatement("create table t1(f1 integer);");
19 System
.out
.println(e
.getMessage());
21 if (e
.getMessage().equals("Invalid state")) System
.exit(0);