TeslaCN commented on issue #12309:
URL: 
https://github.com/apache/shardingsphere/issues/12309#issuecomment-970192928


   Prepared statement is stateful and it is not shared between sessions.
   Refer to https://dev.mysql.com/doc/refman/8.0/en/prepare.html 
   
   The prepared statements are shared between connections in ShardingSphere 
MySQL Proxy.
   
   
https://github.com/apache/shardingsphere/blob/b8db81f51e533773a8992c4909cc4f623279a356/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/binary/execute/MySQLComStmtExecutePacket.java#L81-L83
   
   
![image](https://user-images.githubusercontent.com/20503072/141978219-a9d44186-773a-4c20-bb38-4f7ac78b6d8a.png)
   
   
![image](https://user-images.githubusercontent.com/20503072/141978285-dc0ff989-c3e5-427d-9cb6-3f7bbd9af770.png)
   


-- 
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]


Reply via email to