eldenmoon commented on code in PR #43038: URL: https://github.com/apache/doris/pull/43038#discussion_r1825473148
########## fe/fe-core/src/main/java/org/apache/doris/qe/MysqlConnectProcessor.java: ########## @@ -195,6 +198,58 @@ private void handleExecute() { handleExecute(preparedStatementContext.command, stmtId, preparedStatementContext); } + private String parseRealSql(String origStmt, Map<PlaceholderId, Expression> idExpressionMap) { + if (idExpressionMap.isEmpty()) { Review Comment: I think it's tricky to rewrite the sql, and i think maybe another way, we could print EXETUE xxx USING XXX , and add another filed in audit log to print the prepared sql like `select * from tbl where a = ?` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org