Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ protected void doBegin(JdbcOutputConnection con,
}
}
}
task.setActualTable(new TableIdentifier(null, con.getSchemaName(), actualTable));
task.setActualTable(new TableIdentifier(con.getDatabaseName(), con.getSchemaName(), actualTable));

Optional<JdbcSchema> initialTargetTableSchema =
mode.ignoreTargetTableSchema() ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public void close() throws SQLException
}
}

public String getDatabaseName() throws SQLException
{
return connection.getCatalog();
}

public String getSchemaName()
{
return schemaName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ protected JdbcOutputConnector getConnector(PluginTask task, boolean retryableMet
props.setProperty("connectTimeout", "300000"); // milliseconds
props.setProperty("socketTimeout", "1800000"); // smillieconds

props.setProperty("nullCatalogMeansCurrent", "false");

// Enable keepalive based on tcp_keepalive_time, tcp_keepalive_intvl and tcp_keepalive_probes kernel parameters.
// Socket options TCP_KEEPCNT, TCP_KEEPIDLE, and TCP_KEEPINTVL are not configurable.
props.setProperty("tcpKeepAlive", "true");
Expand Down