You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/28 04:02:20 UTC

[GitHub] [shardingsphere] RaigorJiang commented on issue #11110: PostgreSQL integrates Sharding Proxy and uses Timestamp as the conditional query. There is a problem in the fifth query.

RaigorJiang commented on issue #11110:
URL: https://github.com/apache/shardingsphere/issues/11110#issuecomment-928751698


   Hi @kenl-lin 
   I did a test to verify, and no similar exceptions were found.
   ```sql
   sharding_db=# select * from t_order;
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           2 |       2 | ok     | 2021-09-28 11:51:03.0 
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (2 rows)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
    
   sharding_db=# select * from t_order where user_id = 1 and trans_time < '2021-09-28 00:00:00.0';
    order_id | user_id | status |      trans_time       
   ----------+---------+--------+-----------------------
           1 |       1 | ok     | 2021-09-01 11:51:59.0 
   (1 row)
   
   ```
   
   
   My version is 5.0.0-RC1 (master branch), welcome to try the new version.


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