sandynz opened a new issue #7204:
URL: https://github.com/apache/shardingsphere/issues/7204


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master branch, 5.0.0-RC1-SNAPSHOT
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   ### Expected behavior
   Test case pass
   
   ### Actual behavior
   Exception thrown:
   ```
   [main] ShardingSphere-SQL - Actual SQL: db_1 ::: INSERT INTO t_order 
(order_id, user_id, status) VALUES (1, 1, 'insert')
   [main] o.a.s.dbtest.engine.dml.BaseDMLIT - [ERROR] SQL::INSERT INTO t_order 
(order_id, user_id, status) VALUES (?, ?, ?), Parameter::1:int, 1:int, 
insert:String, Expect::insert_for_order_1.xml
   
   java.lang.AssertionError: 
   Expected: is "1"
        but: was "1100"
   Expected :1
   Actual   :1100
   <Click to see difference>
   
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.junit.Assert.assertThat(Assert.java:956)
        at org.junit.Assert.assertThat(Assert.java:923)
        at 
org.apache.shardingsphere.dbtest.engine.dml.BaseDMLIT.assertRows(BaseDMLIT.java:148)
        at 
org.apache.shardingsphere.dbtest.engine.dml.BaseDMLIT.assertDataSet(BaseDMLIT.java:114)
        at 
org.apache.shardingsphere.dbtest.engine.dml.BaseDMLIT.assertDataSet(BaseDMLIT.java:102)
        at 
org.apache.shardingsphere.dbtest.engine.dml.GeneralDMLIT.assertExecuteUpdate(GeneralDMLIT.java:75)
   ```
   
   ### Reason analyze (If you can)
   PostgreSQL query won't order records by primary key ascending by default. 
e.g.
   ```
   db_1=# select * from t_order;
    order_id | user_id | status
   ----------+---------+--------
        1100 |      11 | init
        1101 |      11 | init
        2100 |      21 | init
        2101 |      21 | init
           1 |       1 | insert
   ```
   
   ### 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).
   


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