Test script for jdbc:gateway connection
[csql.git] / test / jdbc / Gateway / ConnTest09.java
blob4e2d078f5cd27148295eb8ef3259e82b1f5f27c4
1 //Test 2000 connections in jdbc:gateway
2 import java.sql.*;
4 public class ConnTest09
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con = DriverManager.getConnection("jdbc:gateway", "root", "manager");
12 con.close();
13 int i;
14 for ( i=1; i <2000 ; i++)
16 con = DriverManager.getConnection("jdbc:gateway", "root", "manager");
17 con.close();
19 if (i !=2000) System.exit(1); else System.exit(0);
20 }catch(Exception e) {
21 System.out.println("Exception in Test: "+e);
22 e.printStackTrace();
23 System.exit(1);