@@ -583,7 +583,7 @@ protected void doBegin(JdbcOutputConnection con,
583
583
}
584
584
}
585
585
}
586
- task .setActualTable (new TableIdentifier (null , con .getSchemaName (), actualTable ));
586
+ task .setActualTable (new TableIdentifier (con . getDatabaseName () , con .getSchemaName (), actualTable ));
587
587
588
588
Optional <JdbcSchema > initialTargetTableSchema =
589
589
mode .ignoreTargetTableSchema () ?
@@ -999,6 +999,9 @@ public Optional<JdbcSchema> newJdbcSchemaFromTableIfExists(JdbcOutputConnection
999
999
final Set <String > primaryKeys = Collections .unmodifiableSet (primaryKeysBuilder );
1000
1000
1001
1001
final ArrayList <JdbcColumn > builder = new ArrayList <>();
1002
+ logger .info ("table database: {}" , table .getDatabase ());
1003
+ logger .info ("table schema: {}" , table .getSchemaName ());
1004
+ logger .info ("table name: {}" , table .getTableName ());
1002
1005
rs = dbm .getColumns (
1003
1006
JdbcUtils .escapeSearchString (table .getDatabase (), escape ),
1004
1007
JdbcUtils .escapeSearchString (table .getSchemaName (), escape ),
@@ -1007,6 +1010,7 @@ public Optional<JdbcSchema> newJdbcSchemaFromTableIfExists(JdbcOutputConnection
1007
1010
try {
1008
1011
while (rs .next ()) {
1009
1012
String columnName = rs .getString ("COLUMN_NAME" );
1013
+ logger .info ("column name {}" , columnName );
1010
1014
String simpleTypeName = rs .getString ("TYPE_NAME" ).toUpperCase (Locale .ENGLISH );
1011
1015
boolean isUniqueKey = primaryKeys .contains (columnName );
1012
1016
int sqlType = rs .getInt ("DATA_TYPE" );
0 commit comments