[minor](jdbc) fix wrong log and add more info (#29557)

This commit is contained in:
Mingyu Chen
2024-01-10 14:53:49 +08:00
committed by yiguolei
parent bd4ef638f1
commit 3e9cd3a8b9

View File

@ -169,8 +169,8 @@ public class JdbcMySQLClient extends JdbcClient {
tableSchema.add(field);
}
} catch (SQLException e) {
throw new JdbcClientException("failed to get table name list from jdbc for table %s:%s", e, tableName,
Util.getRootCauseMessage(e));
throw new JdbcClientException("failed to get jdbc columns info for table %.%s: %s",
e, dbName, tableName, Util.getRootCauseMessage(e));
} finally {
close(rs, conn);
}