Skip to content

Commit

Permalink
LDEV-3317 comment out debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed May 22, 2024
1 parent 563bd11 commit c38997d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions core/src/main/java/lucee/runtime/db/HSQLDBHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static void createTable(Connection conn, PageContext pc, String dbTableN
comma = ",";
}
create.append(")");
SystemOut.print("SQL: " + Caster.toString(create));
//SystemOut.print("SQL: " + Caster.toString(create));
stat.execute(create.toString());
// SystemOut.print("Create Table: [" + dbTableName + "] took " + stopwatch.time());
}
Expand Down Expand Up @@ -192,12 +192,12 @@ private static void populateTable(Connection conn, PageContext pc, String dbTabl
values.append(")");

if (tableCols != null && targetCols.size() == 0) {
SystemOut.print("Populate Table, table has no used columns: " + dbTableName);
//SystemOut.print("Populate Table, table has no used columns: " + dbTableName);
return;
}

SystemOut.print("SQL: " + Caster.toString(insert));
SystemOut.print("SQL: " + Caster.toString(values));
//SystemOut.print("SQL: " + Caster.toString(insert));
//SystemOut.print("SQL: " + Caster.toString(values));

// INSERT STATEMENT
// HashMap integerTypes=getIntegerTypes(types);
Expand Down Expand Up @@ -271,7 +271,7 @@ else if (type == BINARY)
Statement stat2 = conn.createStatement();
stat2.execute("SET FILES LOG TRUE");

SystemOut.print("Populate Table: [" + dbTableName + "] with [" + rows + "] rows, [" + count + "] //columns, took " + stopwatch.time() + "ms");
//SystemOut.print("Populate Table: [" + dbTableName + "] with [" + rows + "] rows, [" + count + "] //columns, took " + stopwatch.time() + "ms");
}

private static int[] toInnerTypes(int[] types) {
Expand Down Expand Up @@ -418,8 +418,8 @@ private static Struct getUsedColumnsForQuery(Connection conn, SQL sql) throws SQ
stat.execute("DROP VIEW " + view);
}
catch (Exception e) {
aprint.o(e.getMessage());
SystemOut.print("VIEW Exception, fall back to loading all data: [" + e.toString() + "], sql [" + sql.toString() + "]");
//aprint.o(e.getMessage());
//SystemOut.print("VIEW Exception, fall back to loading all data: [" + e.toString() + "], sql [" + sql.toString() + "]");
tables = null; // give up trying to be smart
}
finally {
Expand All @@ -432,7 +432,7 @@ private static Struct getUsedColumnsForQuery(Connection conn, SQL sql) throws SQ
SystemOut.print(e.toString());
}
}
SystemOut.print("getUsedColumnsForQuery: took " + stopwatch.time());
//SystemOut.print("getUsedColumnsForQuery: took " + stopwatch.time());
return tables;
}

Expand Down Expand Up @@ -551,7 +551,7 @@ private QueryImpl _execute(PageContext pc, SQL sql, int maxrows, int fetchsize,
}
catch (PageException pe) {
if (isUnion || StringUtil.indexOf(pe.getMessage(), "NumberFormatException:") != -1) {
SystemOut.print("HSQLDB Retry with Simple Types after: " + pe.getMessage());
//SystemOut.print("HSQLDB Retry with Simple Types after: " + pe.getMessage());
return __execute(pc, sql, maxrows, fetchsize, timeout, stopwatch, tables, true);
}
throw pe;
Expand Down Expand Up @@ -597,7 +597,7 @@ public static QueryImpl __execute(PageContext pc, SQL sql, int maxrows, int fetc
qoqTables.add(dbTableName);
}

SystemOut.print("QoQ HSQLDB CREATED TABLES: " + sql.toString());
//SystemOut.print("QoQ HSQLDB CREATED TABLES: " + sql.toString());

// create the sql as a view, to find out which table columns are needed
Struct allTableColumns = getUsedColumnsForQuery(conn, sql);
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.1.0.154-SNAPSHOT"/>
<property name="version" value="6.1.0.155-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.1.0.154-SNAPSHOT</version>
<version>6.1.0.155-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit c38997d

Please sign in to comment.