REQ-3284: 推送
This commit is contained in:
parent
b4c9b260aa
commit
3e1470f6ce
@ -138,14 +138,14 @@ class ProxyStatement extends StatementWrapper {
|
|||||||
|
|
||||||
private String determineSQL() {
|
private String determineSQL() {
|
||||||
try {
|
try {
|
||||||
return getSqlFromStmt();
|
return getSQLFromStmt();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("[SQL] Error building sql", e);
|
log.warn("[SQL] Error building sql", e);
|
||||||
return getSampleSQL();
|
return getSampleSQL();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getSqlFromStmt() throws Exception {
|
private String getSQLFromStmt() throws Exception {
|
||||||
if (rawStatement instanceof com.zaxxer.hikari.pool.ProxyStatement) {
|
if (rawStatement instanceof com.zaxxer.hikari.pool.ProxyStatement) {
|
||||||
Statement stmt = SQLAccessor.getStmtFromProxy((com.zaxxer.hikari.pool.ProxyStatement) rawStatement);
|
Statement stmt = SQLAccessor.getStmtFromProxy((com.zaxxer.hikari.pool.ProxyStatement) rawStatement);
|
||||||
if (stmt instanceof ClientPreparedStatement)
|
if (stmt instanceof ClientPreparedStatement)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user