etl.editor/src/org/netbeans/modules/sql/framework/model/visitors/SQLDBSynchronizationValidationVisitor.java
changeset 4205 2739cb16db12
parent 4204 8ccd56245a55
child 4207 774fa5120845
     1.1 --- a/etl.editor/src/org/netbeans/modules/sql/framework/model/visitors/SQLDBSynchronizationValidationVisitor.java	Tue Apr 22 18:44:33 2008 +0530
     1.2 +++ b/etl.editor/src/org/netbeans/modules/sql/framework/model/visitors/SQLDBSynchronizationValidationVisitor.java	Wed Apr 23 15:56:05 2008 +0530
     1.3 @@ -219,9 +219,10 @@
     1.4      }
     1.5  
     1.6      private void compareCollabTableWithDatabaseTable(SQLDBTable collabTable, DBMetaDataFactory meta) throws Exception {
     1.7 -        if (meta.isTableOrViewExist(collabTable.getCatalog(), collabTable.getSchema(), collabTable.getName())) {
     1.8 +        AbstractDBTable ct = ((AbstractDBTable)collabTable);
     1.9 +        if (meta.isTableOrViewExist(ct.getResolvedCatalogName(), ct.getResolvedSchemaName(), ct.getResolvedTableName())) {
    1.10              // Get the table from database
    1.11 -            Table newTable = new Table(collabTable.getName(), collabTable.getCatalog(), collabTable.getSchema());
    1.12 +            Table newTable = new Table(ct.getResolvedCatalogName(), ct.getResolvedSchemaName(), ct.getResolvedTableName());
    1.13              meta.populateColumns(newTable);
    1.14  
    1.15              List collabColumns = collabTable.getColumnList();