Skip to content

Commit

Permalink
Synonym error reported in comments in JRUBY-2618
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Enebo committed Feb 11, 2009
1 parent ca3e595 commit cfcaed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/jdbc_adapter/RubyJdbcConnection.java
Expand Up @@ -131,8 +131,9 @@ public Object call(Connection c) throws SQLException {
if (schemaName != null) schemaName = caseConvertIdentifierForJdbc(metadata, schemaName);
table_name = caseConvertIdentifierForJdbc(metadata, table_name);

String[] tableTypes = new String[]{"TABLE","VIEW","SYNONYM"};
RubyArray matchingTables = (RubyArray) tableLookupBlock(context.getRuntime(),
c.getCatalog(), schemaName, table_name, new String[]{"TABLE","VIEW"}).call(c);
c.getCatalog(), schemaName, table_name, tableTypes).call(c);
if (matchingTables.isEmpty()) {
throw new SQLException("Table " + table_name + " does not exist");
}
Expand Down

0 comments on commit cfcaed6

Please sign in to comment.