Skip to content

Commit

Permalink
0001642: Triggers referencing tables with case sensitive schemas fail…
Browse files Browse the repository at this point in the history
… to create on H2
  • Loading branch information
chenson42 committed Mar 11, 2014
1 parent 070a675 commit c079c83
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -252,7 +252,7 @@ protected String escapeString(Object val) {
protected Map<String, String> getTemplates(Connection conn) throws SQLException {
Map<String, String> templates = new HashMap<String, String>();
Statement stmt = conn.createStatement();
String schemaPrefix = schemaName != null && schemaName.length() > 0 ? schemaName+"." : "";
String schemaPrefix = schemaName != null && schemaName.length() > 0 ? "\"" + schemaName+"\"." : "";
ResultSet rs = stmt.executeQuery(String.format("select * from %s%s%s", schemaPrefix, triggerName, TEMPLATE_TABLE_SUFFIX));
if (rs.next()) {
ResultSetMetaData metaData = rs.getMetaData();
Expand Down

0 comments on commit c079c83

Please sign in to comment.