lock manager and chunk allocation mutex modificationsw
[csql.git] / test / jdbc / Gateway / ConnTest05.java
blobab19e0c1711de575279af4fd44c9b912a45b0910
1 //To connect with connectstring "jdbc:gateway" and give correct "user" and incorrect "password" in properties object. It should fail.
3 import java.sql.*;
4 public class ConnTest05
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con = DriverManager.getConnection("jdbc:gateway", "root", "wrongpasswdtestxieliang");
12 if (con == null) System.exit(0);
13 }catch(Exception e) {
14 System.out.println("Exception in Test: "+e.getMessage());
15 e.getStackTrace();
16 System.exit(0);