schizophrenicmaniac commented on PR #40212:
URL: https://github.com/apache/shardingsphere/pull/40212#issuecomment-6338161621

   @terrymanu Thanks, I pushed a commit for it.
   
   The column types are now collected for each parameter marker, and a 
PostgreSQL parameter is only decoded when every one of its markers is compared 
with or assigned to a column. In `SELECT abs($1) FROM foo_tbl WHERE id=$1`, the 
marker inside `abs` has no column, so `$1` stays text and PostgreSQL resolves 
the overload the same way it does on master. A repeated parameter whose 
occurrences are all compared with the same int column, like `id=$1 OR id=$1`, 
is still decoded. I added tests for both, including the first OID 0 Bind with 
`-2147483648`.


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