eldenmoon commented on code in PR #15491:
URL: https://github.com/apache/doris/pull/15491#discussion_r1071705709
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:
##########
@@ -3308,6 +3317,11 @@ public long getNextId() {
return idGenerator.getNextId();
}
+ // counter for prepared statement id
+ public long getNextStmtId() {
+ return this.stmtIdCounter.getAndIncrement();
Review Comment:
`stmtIdCounter` doesn't need to persist, since it' attached with a JDBC
connect session
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]