You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "TeslaCN (via GitHub)" <gi...@apache.org> on 2023/02/03 10:02:06 UTC

[GitHub] [shardingsphere] TeslaCN commented on issue #23964: Boolean type giving error in ShardingSphere while insert

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

   Welcome @surukonda 
   
   It seems that this is not caused by `psql`.
   
   Could you try adding type cast on the value such as
   ```sql
   INSERT INTO "mobile" ("created_at","tracking_id","custom_released") VALUES ($1, $2, $3::bool)
   ```
   
   If you could debug the ShardingSphere-Proxy, you may try putting a breakpoint here:
   https://github.com/apache/shardingsphere/blob/f8c4f616667d5678c44e98e0e6e4ce5d7d6dbfd4/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/PostgreSQLComBindPacket.java#L79


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