Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
looks like interclient does not treat the underscore as wildcard like…
… jaybird does
  • Loading branch information
erilong committed May 24, 2011
1 parent 78f4072 commit 3834a0a
Showing 1 changed file with 0 additions and 11 deletions.
Expand Up @@ -101,17 +101,6 @@ public String getTransactionTriggerExpression(String defaultCatalog, String defa
return "null";
}

@Override
protected String getTableNamePattern(String tableName) {
/*
* When looking up a table definition, Jaybird treats underscore (_) in
* the table name as a wildcard, so it needs to be escaped, or you'll
* get back column names for more than one table. Example:
* DatabaseMetaData.metaData.getColumns(null, null, "SYM\\_NODE", null)
*/
return tableName.replaceAll("\\_", "\\\\_");
}

@Override
public String getSelectLastInsertIdSql(String sequenceName) {
return "select gen_id(gen_" + sequenceName + ", 0) from rdb$database";
Expand Down

0 comments on commit 3834a0a

Please sign in to comment.