echo-ethan opened a new issue, #34819:
URL: https://github.com/apache/shardingsphere/issues/34819

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).  
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details.  
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   ---
   
   ### Which version of ShardingSphere did you use?
   
   (Please fill in, e.g. `5.5.2`)
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   When inserting and reading rows via Rust `sqlx` with prepared (binary) 
statements, there should be no errors. Data should be successfully written and 
retrieved.
   
   ### Actual behavior
   
   When connecting via ShardingSphere-Proxy, the following errors occur during 
insert or query operations:
   ```
   Database(PgDatabaseError {
   severity: Error,
   code: "58000",
   message: "Unknown exception.\nMore details: 
java.lang.IllegalArgumentException: Cannot find PostgreSQL type 'TEXT' in 
column type when process binary protocol value",
   detail: None, hint: None, position: None, where: None, schema: None, table: 
None, column: None, data_type: None, constraint: None, file: None, line: None, 
routine: None
   })
   
   Database(PgDatabaseError {
   severity: Error,
   code: "0A000",
   message: "Unsupported SQL operation: binary mode.",
   detail: None, hint: None, position: None, where: None, schema: None, table: 
None, column: None, data_type: None, constraint: None, file: None, line: None, 
routine: None
   })
   
   ```
   If I connect directly to PostgreSQL (bypassing ShardingSphere-Proxy), Rust 
`sqlx` works without error.
   
   ### Reason analyze (If you can)
   
   It seems ShardingSphere-Proxy lacks binary protocol support for PostgreSQL 
TEXT (OID=25) when the driver uses binary mode parameters. Possibly there is no 
dedicated `TEXT` binary protocol implementation in 
`PostgreSQLBinaryProtocolValueFactory`.


-- 
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-unsubscr...@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to