susongyan commented on issue #27892:
URL: 
https://github.com/apache/shardingsphere/issues/27892#issuecomment-1670755886

   to question 1: 
   
   proxy is also a jdbc client , i think  pg server doesn't case about escaped  
??
   
   PostgreSQLComParseExecutor is transfer   pg origin packet to  jdbc style , 
then  pass it to pg driver to recover to  pg origin  packet  style ;   it's  pg 
driver's jdbc escape int client side 
   
   origin pg packet from  node: 
   SELECT * from table WHERE receiver ?& $1 OR creater = $2;
   
   proxy convert it to :
   SELECT * from table WHERE receiver ??& ? OR creater = ?;
   
   pg driver recover it and send to  pg server:
   SELECT * from table WHERE receiver ?& $1 OR creater = $2;
   
   to question2 : 
   Parser.parseJdbcSql used in   SetupQueryRunner( set variables ) and 
CachedQueryCreateAction( lrucache, common sql) 
   


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