*** empty log message ***
[csql.git] / test / sqlnetwork / Jdbcnetwork / ConnTest16.java
blob5955227e0c2e71a02e6ab02a1ef28a8e08f35fa2
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/csql", "root", "manager");
11 if ( con == null )
12 System.exit(1);
13 con.close();
14 con = DriverManager.getConnection("jdbc:csql://localhost:5678/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);