*** empty log message ***
[csql.git] / test / jdbc / network / Gateway / ConnTest06.java
blob7599bd0344bc604016b7bf8eb0ba022c254cb22a
1 //Try to open through jdbc:gateway://localhost:5678 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://localhost:5678", "root", "manager");
13 if ( con == null )
14 System.exit(1);
15 con.close();
17 //Connection con1=null;
18 con = DriverManager.getConnection("jdbc:gateway://localhost:5678","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);