File Removed
[csql.git] / test / jdbc / Connection / IsoTest1.java
blobb2f5c50dd113fa99ac06e4d7e730f665c60b0442
1 //Open connection and call setTransactionIsolation (TRANSACTION_SERIALIZABLE ). It should throw unsupported SQL exception.
2 //Author: XieLiang
3 import java.sql.*;
4 public class IsoTest1
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 )
13 System.out.println("test failed!");
14 con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
15 con.commit();
16 con.close();
17 System.out.println("test failed2!");
18 }catch(Exception e) {
19 System.out.println(e.getMessage());
20 e.getStackTrace();