mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-04 03:29:16 +08:00
fix: fix every loadDatabasePrecision call will execute sql query error
This commit is contained in:
parent
056702bcba
commit
2a1543118d
@ -106,6 +106,8 @@ public class Schema3_0Manager extends SchemaManager {
|
||||
|
||||
@Override
|
||||
public TimestampPrecision loadDatabasePrecision() throws DataXException {
|
||||
if (this.precision != null)
|
||||
return this.precision;
|
||||
try (Statement stmt = conn.createStatement()) {
|
||||
ResultSet rs = stmt.executeQuery("select * from " + Constants.INFORMATION_SCHEMA + Constants.INFORMATION_SCHEMA_COMMA
|
||||
+ Constants.INFORMATION_SCHEMA_TABLE_INS_DATABASES + " where name = " + getDbnameForSqlQuery());
|
||||
|
Loading…
Reference in New Issue
Block a user