You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/09/05 09:35:30 UTC

[GitHub] [shardingsphere] TeslaCN opened a new issue, #20797: Rewriter changes positional parameter ($1) to dollar (?) in SQL which break syntax of PostgreSQL

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

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   master - 7d0c633de85dd3323153a1795ac16e38be5140a8
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere infra only. Neither JDBC nor Proxy.
   
   ### Expected behavior
   
   The original SQL was:
   ```sql
   INSERT INTO bmsql_oorder (    o_id, o_d_id, o_w_id, o_c_id, o_entry_d,     o_ol_cnt, o_all_local) VALUES ($1, $2, $3, $4, $5, $6, $7)
   ```
   
   ### Actual behavior
   
   ```sql
   INSERT INTO bmsql_oorder (    o_id, o_d_id, o_w_id, o_c_id, o_entry_d,     o_ol_cnt, o_all_local) VALUES (?, ?, ?, ?, ?, ?, ?) 
   ```
   
   Which caused.
   ```
   ERROR: syntax error at or near "," (42601)
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] tristaZero closed issue #20797: Rewriter changes positional parameter ($1) to dollar (?) in SQL which break syntax of PostgreSQL

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #20797: Rewriter changes positional parameter ($1) to dollar (?) in SQL which break syntax of PostgreSQL
URL: https://github.com/apache/shardingsphere/issues/20797


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org