adding test scripts
[csql.git] / test / jdbc / Gateway / ConnTest06.java
blob83dd565ebdddeb01c6378e8ddfbac133d025fe74
1 //Try to open through jdbc:gateway connection , close , then open . it should pass
3 import java.sql.*;
4 public class ConnTest06
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con =null;
12 con=DriverManager.getConnection("jdbc:gateway", "root", "manager");
13 if ( con == null )
14 System.exit(1);
15 con.close();
17 //Connection con1=null;
18 con = DriverManager.getConnection("jdbc:gateway","root","manager");
19 if ( con == null )
20 System.exit(1);
21 con.close();
22 System.exit(0);
23 }catch(Exception e) {
24 System.out.println(e.getMessage());
25 e.getStackTrace();
26 System.exit(1);