64 bit build fix
[csql.git] / test / sqlnetwork / Jdbcnetwork / ConnTest1.java
blobc6300a63d3aecc03d07c5683d29c9a3ddab48278
1 //Connect with connect string "jdbc:csql://localhost:5678/csql" and give correct "user" and "password" in properties object. It should pass.
2 import java.sql.*;
3 public class ConnTest1
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 ) System.exit(1);
12 con.close();
13 System.exit(0);
14 }catch(Exception e) {
15 System.out.println("Exception in Test: "+e);
16 e.getStackTrace();
17 System.exit(1);