test cases for trie index
[csql.git] / test / jdbc / Connection / ConnTest1.java
blobfaf774dc3dc3817f73e1a413c282cc98cb1a0359
1 //Try to connect with connectstring "jdbc:csql" and give correct "user" and "password" in properties object. It should pass.
2 //Author: XieLiang
3 import java.sql.*;
4 public class ConnTest1
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 ) System.exit(1);
13 con.close();
14 System.exit(0);
15 }catch(Exception e) {
16 System.out.println("Exception in Test: "+e);
17 e.getStackTrace();
18 System.exit(1);