1 //Close the connection and then call createStatement(). It should fail.
4 public class ConnTest18
6 public static void main(String
[] args
)
10 Class
.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con
= DriverManager
.getConnection("jdbc:csql", "root", "manager");
15 Statement cStmt
= con
.createStatement();
19 System
.out
.println(e
.getMessage());
21 if (e
.getMessage().equals("Invalid state")) System
.exit(0);