- try (Connection conn = getConnection(driver, jdbcUrl))
- {
- while (true) {
- boolean processed = false;
- line = ci.readLine(PROMPT);
-
- for (Stmt statement : m_statements) {
- if (statement.handles(line)) {
- try {
- statement.exec(driver, conn, pw, line);
- }
- catch (SQLException exc) {
- exc.printStackTrace(pw);
- }
- processed = true;
- break;
+ while (true) {
+ boolean processed = false;
+ line = ci.readLine(PROMPT);
+
+ for (Stmt statement : m_statements) {
+ if (statement.handles(line)) {
+ try (Connection conn = getConnection(driver, jdbcUrl)){
+ statement.exec(driver, conn, pw, line);