TeslaCN opened a new issue #10656:
URL: https://github.com/apache/shardingsphere/issues/10656


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   Proxy
   
   ### Expected behavior
   
   ### Actual behavior
   
   Client sent:
   ```
   PostgreSQL
       Type: Bind
       Length: 22
       Portal: 
       Statement: S_1
       Parameter formats: 1
       Parameter values: 1
       Result formats: 0
   PostgreSQL
       Type: Execute
       Length: 9
       Portal: 
       Returns: all rows
   PostgreSQL
       Type: Sync
       Length: 4
   ```
   
   Server response:
   ```
   PostgreSQL
       Type: Bind completion
       Length: 4
   PostgreSQL
       Type: Row description
       Length: 143
       Field count: 5
   PostgreSQL
       Type: Data row
       Length: 119
       Field count: 5
   PostgreSQL
       Type: Command completion
       Length: 7
       Tag:  0
   ```
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ```java
   try (PreparedStatement preparedStatement = 
connection.prepareStatement("select * from  t_order limit ?")) {
       for (int i = 0; i < 6; i++) {
           preparedStatement.setInt(1, 1);
           try (ResultSet resultSet = preparedStatement.executeQuery()) {
               while (resultSet.next()) {
                   System.out.println(resultSet.getLong("order_id"));
               }
           }
       }
   }
   ```
   
   ### 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to