adding test scripts
[csql.git] / test / jdbc / network / Connection / ConnTest16.java
blob2c3c35dfeb02f7e4be5e5035bc42258030faf462
1 //Try to open , close , open . it should pass
2 import java.sql.*;
3 public class ConnTest16
5 public static void main(String[] args)
7 try
9 Class.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con = DriverManager.getConnection("jdbc:csql://localhost:5678", "root", "manager");
11 if ( con == null )
12 System.exit(1);
13 con.close();
14 con = DriverManager.getConnection("jdbc:csql","root","manager");
15 if ( con == null )
16 System.exit(1);
17 con.close();
18 System.exit(0);
19 }catch(Exception e) {
20 System.out.println(e.getMessage());
21 e.getStackTrace();
22 System.exit(1);