Mercurial > hg > monetdb-java
comparison tests/Test_PSsomeamount.java @ 391:f523727db392
Moved Java classes from packages starting with nl.cwi.monetdb.* to package org.monetdb.*
This naming complies to the Java Package Naming convention as MonetDB's main website is www.monetdb.org.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 12 Nov 2020 22:02:01 +0100 (2020-11-12) |
parents | 3ee02e94bd1d |
children | bf9f6b6ecf40 |
comparison
equal
deleted
inserted
replaced
390:6199e0be3c6e | 391:f523727db392 |
---|---|
5 * | 5 * |
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2020 MonetDB B.V. | 6 * Copyright 1997 - July 2008 CWI, August 2008 - 2020 MonetDB B.V. |
7 */ | 7 */ |
8 | 8 |
9 import java.sql.*; | 9 import java.sql.*; |
10 import java.util.*; | |
11 | 10 |
12 /* Create a lot of PreparedStatements, to emulate webloads such as those | 11 /* Create a lot of PreparedStatements, to emulate webloads such as those |
13 * from Hibernate. */ | 12 * from Hibernate. */ |
14 | 13 |
15 public class Test_PSsomeamount { | 14 public class Test_PSsomeamount { |
16 public static void main(String[] args) throws Exception { | 15 public static void main(String[] args) throws Exception { |
17 // Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); // not needed anymore for self registering JDBC drivers | |
18 Connection con = DriverManager.getConnection(args[0]); | 16 Connection con = DriverManager.getConnection(args[0]); |
19 Statement stmt = con.createStatement(); | 17 Statement stmt = con.createStatement(); |
20 PreparedStatement pstmt; | 18 PreparedStatement pstmt; |
21 | 19 |
22 // >> true: auto commit should be on | 20 // >> true: auto commit should be on |
38 } catch (SQLException e) { | 36 } catch (SQLException e) { |
39 System.out.println("FAILED :( "+ e.getMessage()); | 37 System.out.println("FAILED :( "+ e.getMessage()); |
40 System.out.println("ABORTING TEST!!!"); | 38 System.out.println("ABORTING TEST!!!"); |
41 } | 39 } |
42 | 40 |
41 stmt.close(); | |
43 con.close(); | 42 con.close(); |
44 } | 43 } |
45 } | 44 } |