testing failed systests after bug fixes
[csql.git] / tmptest / jdbc / insertT1.java
blob3d39eb909c08128594fee618c04b686527bca00a
1 import java.sql.*;
3 public class insertT1
5 public static void main( String argv[] )
7 try
9 // Load JDBC driver
10 Class.forName("csql.jdbc.JdbcSqlDriver");
12 // Connect to CSQL
13 Connection con = DriverManager.getConnection("jdbc:csql", "root", "manager");
15 // Insert Tuples
16 Statement stmt = con.createStatement();
17 boolean rc = stmt.execute( "INSERT INTO t1 (f1, f2) values (2,3)" );
18 rc = stmt.execute( "INSERT INTO t1 (f1, f2) values (31,80)" );
19 rc = stmt.execute( "INSERT INTO t1 (f1, f2) values (722,9)" );
20 con.commit();
21 stmt.close();
23 // Disconnect from CSQL
24 con.close();
26 } catch(Exception e) {
27 System.out.println("insertT1: " + e );
28 e.getStackTrace();