susongyan opened a new issue, #27892:
URL: https://github.com/apache/shardingsphere/issues/27892

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   5.3.0
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   proxy 
   
   ### Expected behavior
   pgsql  execute success 
   
    SELECT  * from table  WHERE receiver ?& $1 OR creater = $2;    
    parameter   1, [email protected]     2, susongyan
   
   ### Actual behavior
   org.postgresql.util.PSQLException: No value specified for parameter 3.
   
   ### Reason analyze (If you can)
   PostgreSQLComParseExecutor #convertSQLToJDBCStyle
   
   after proxy parse this sql and convert it to jdbc paramter style 
   the actual sql to execute in jdbc is    "SELECT  * from table  WHERE 
receiver ?& ? OR creater = ?;"
   
   jdbc style, treat "?" as parameter marker, then  this sql  need three 
parameters in mistake (actually only two)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


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