adding test scripts
[csql.git] / test / sqlnetwork / Jdbcnetwork / StmtTest4.java
blobb37524ca35bf12582a35dc5f58c370fb2ad14962
1 //Open a connection and close it twice. It should give no error
2 import java.sql.*;
3 public class StmtTest4
5 public static void main(String[] args)
7 try
9 Class.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con = DriverManager.getConnection("jdbc:csql://localhost:5678/csql", "root", "manager");
11 con.close();
12 con.close();
13 }catch(Exception e) {
14 System.out.println("Exception in Test: "+e);
15 e.printStackTrace();
16 System.exit(1);