susongyan opened a new issue, #25838:
URL: https://github.com/apache/shardingsphere/issues/25838
## 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
update json field success
### Actual behavior
org.postgresql.util.PSQLException: ERROR: column "xx" is of type json but
expression is of type character varying
proxy seems to treat json as text in backend
### Reason analyze (If you can)
in "bind" phase, actual parameter is not parsed correctly
PostgreSQLComBindPacket#getTextParameters doesn't deal with
PostgreSQLColumnType.POSTGRESQL_TYPE_JSON
<img width="1364" alt="image"
src="https://github.com/apache/shardingsphere/assets/17156143/16a17fd6-bb38-4a20-9b2c-d3cd08a63621">
expected parameter object(i tried to fix myself): update success
<img width="1396" alt="image"
src="https://github.com/apache/shardingsphere/assets/17156143/9cd95229-ba80-4cda-b615-8db804feb1da">
### 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]