adding test scripts
[csql.git] / test / jdbc / Connection / ConnTest16.java
blobfd8db5d3680b6f5643d4ecb8c333f1db3ec6204f
1 //Try to open , close , open . it should pass
2 //Author: XieLiang
3 import java.sql.*;
4 public class ConnTest16
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 = DriverManager.getConnection("jdbc:csql","root","manager");
16 if ( con == null )
17 System.exit(1);
18 con.close();
19 System.exit(0);
20 }catch(Exception e) {
21 System.out.println(e.getMessage());
22 e.getStackTrace();
23 System.exit(1);