1 //Call Procedure through gateway
5 public class Procedure01
7 public static void main(String
[] args
)
11 Class
.forName("csql.jdbc.JdbcSqlDriver");
12 Connection con
= DriverManager
.getConnection("jdbc:adapter", "root", "manager");
13 if ( con
== null ) System
.exit(1);
14 CallableStatement cs
=null;
15 if(System
.getenv("DSN").equals("oracle")){
16 cs
= con
.prepareCall("{ call CsqlRef.InParamSelect(?) }");
19 System
.out
.println("mysql");
20 cs
= con
.prepareCall("{ call InParamSelect(?) }");
23 ResultSet rs
= cs
.executeQuery();
24 System
.out
.println("F1"+" F2");
25 System
.out
.println("-------------");
28 System
.out
.println(rs
.getInt(1)+" "+rs
.getInt(2));
34 System
.out
.println("Exception in Test: "+e
);