Author: shawkins
Date: 2009-05-19 12:19:52 -0400 (Tue, 19 May 2009)
New Revision: 979
Modified:
trunk/server/src/main/java/com/metamatrix/metadata/runtime/spi/jdbc/JDBCRuntimeMetadataReader.java
Log:
TEIID-538 there are only two parameters left in the active vdb query
Modified:
trunk/server/src/main/java/com/metamatrix/metadata/runtime/spi/jdbc/JDBCRuntimeMetadataReader.java
===================================================================
---
trunk/server/src/main/java/com/metamatrix/metadata/runtime/spi/jdbc/JDBCRuntimeMetadataReader.java 2009-05-18
18:43:16 UTC (rev 978)
+++
trunk/server/src/main/java/com/metamatrix/metadata/runtime/spi/jdbc/JDBCRuntimeMetadataReader.java 2009-05-19
16:19:52 UTC (rev 979)
@@ -339,13 +339,10 @@
String sql = null;
VirtualDatabaseID result = null;
- int nParms = 2;
-
try{
if(isActive){
if(version == null){
sql = JDBCTranslator.SELECT_ACTIVE_VIRTUAL_DATABASE_ID_LV;
- nParms = 3;
}else{
sql = JDBCTranslator.SELECT_ACTIVE_VIRTUAL_DATABASE_ID;
}
@@ -362,9 +359,6 @@
}
else{
statement.setString(2, fullName.toUpperCase());
- if(nParms==3) {
- statement.setString(3, fullName.toUpperCase());
- }
}
if (! statement.execute()){
throw new VirtualDatabaseException(ErrorMessageKeys.GEN_0007,
RuntimeMetadataPlugin.Util.getString(ErrorMessageKeys.GEN_0007, sql) );
Show replies by date