Author: shawkins
Date: 2012-09-01 07:34:08 -0400 (Sat, 01 Sep 2012)
New Revision: 4393
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCMetdataProcessor.java
Log:
TEIID-2180 limiting the scope of when a full single shot scan of columns is performed
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCMetdataProcessor.java
===================================================================
---
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCMetdataProcessor.java 2012-09-01
11:27:36 UTC (rev 4392)
+++
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCMetdataProcessor.java 2012-09-01
11:34:08 UTC (rev 4393)
@@ -263,7 +263,7 @@
if ((excludeTables == null && schemaPattern == null && tableNamePattern
== null) //getting everything
|| (singleSchema && tableNamePattern == null &&
(excludeTables == null //getting all from a single schema
- || tableMap.size() > Math.sqrt(tableMap.size() + excludedTables)))) { //not
excluding enough from a single schema
+ || tableMap.size()/2 > Math.sqrt(tableMap.size()/2 + excludedTables)))) { //not
excluding enough from a single schema
ResultSet columns = metadata.getColumns(catalog, schemaPattern, tableNamePattern,
null);
processColumns(metadataFactory, tableMap, columns);
} else {
Show replies by date