TeslaCN commented on issue #23964:
URL: 
https://github.com/apache/shardingsphere/issues/23964#issuecomment-1423707377

   > > I think the type cast issue is related to the following codes. If we 
invoked `setObject` with a String, I guess the type cast error will occur.
   > > 
https://github.com/apache/shardingsphere/blob/1fc916e078b922abf336d247dc526f4ed7794b9a/proxy/backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/statement/JDBCBackendStatement.java#L58-L65
   > 
   > things seems to fail even before this code block is hit. Following 
statement is being executed before actual insert by the database driver and it 
fails with `cannot convert false to Varbit` error
   > 
   > ```
   > begin
   > INSERT INTO "books" ("title","author","desc","published") VALUES 
($1,$2,$3,$4) RETURNING "id"
   > INSERT INTO "books" ("title","author","desc","published") VALUES (?,?,?,?) 
RETURNING "id"
   > rollback
   > ```
   
   About the error `cannot convert false to Varbit`.
   
   You may refer to:
   
https://github.com/jackc/pgtype/blob/e26c6b4e3d1c1d25a086e5da106165f1819d62e2/varbit.go#L17-L19


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