REQ-3284: 推送

This commit is contained in:
yanglin 2024-11-29 16:30:39 +08:00
parent b4c9b260aa
commit 3e1470f6ce

View File

@ -138,14 +138,14 @@ class ProxyStatement extends StatementWrapper {
private String determineSQL() {
try {
return getSqlFromStmt();
return getSQLFromStmt();
} catch (Exception e) {
log.warn("[SQL] Error building sql", e);
return getSampleSQL();
}
}
private String getSqlFromStmt() throws Exception {
private String getSQLFromStmt() throws Exception {
if (rawStatement instanceof com.zaxxer.hikari.pool.ProxyStatement) {
Statement stmt = SQLAccessor.getStmtFromProxy((com.zaxxer.hikari.pool.ProxyStatement) rawStatement);
if (stmt instanceof ClientPreparedStatement)