openGauss-3.1.0,create a MySQL compatible database(create database DBCOMPATIBILITY='B';)
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
proxy
Expected behavior
log in successfully.
Actual behavior
Reason analyze (If you can)
The problem is initially positioned as that in the preparestatment of shardingsphere to openGauss, the expected bool field is actually passed to varchar.
There is no way to send POSTGRESQL_TYPE_BIT by JDBC driver for now. This issue could not reproduce accurately by JDBC.
But we still need to consider handling BIT type.
Bug Report
Using grafana connects to shardingsphere, openGauss report :column "auth_token_seen" is of type boolean but expression is of type character varying.
Which version of ShardingSphere did you use?
shardingsphere-5.2.1, commit id:85541320133e8049027e922557636fe32c58625c
grafana-7.1.3 with opengauss-gdbc
openGauss-3.1.0,create a MySQL compatible database(create database DBCOMPATIBILITY='B';)
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
proxy
Expected behavior
log in successfully.
Actual behavior
Reason analyze (If you can)
The problem is initially positioned as that in the preparestatment of shardingsphere to openGauss, the expected bool field is actually passed to varchar.
the error sql of preparedstatement
the complate sql
Before shardingsphere sends the message to openGauss, the data type of the error column is 1043 which means varchar.
When shardingsphere receives a message, the data type of the error column is POSTGRESQL_TYPE_BIT.
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).
the detail of table