Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Feb 1, 2023
1 parent 74aaf43 commit c22aea7
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@
*/
public class CommonFenceStoreSqls {

/**
* The constant QUERY_END_STATUS_BY_DATE.
*/
protected static final String QUERY_END_STATUS_BY_DATE = "select xid, branch_id, status, gmt_create, gmt_modified "
+ "from " + LOCAL_TCC_LOG_PLACEHOLD
+ " where gmt_modified < ? "
+ " and status in (" + CommonFenceConstant.STATUS_COMMITTED + " , " + CommonFenceConstant.STATUS_ROLLBACKED + " , " + CommonFenceConstant.STATUS_SUSPENDED + ")"
+ " limit ?";

/**
* The constant LOCAL_TCC_LOG_PLACEHOLD.
*/
Expand All @@ -51,6 +42,15 @@ public class CommonFenceStoreSqls {
+ " (xid, branch_id, action_name, status, gmt_create, gmt_modified) "
+ " values (?, ?, ?, ?, ?, ?) ";

/**
* The constant QUERY_END_STATUS_BY_DATE.
*/
protected static final String QUERY_END_STATUS_BY_DATE = "select xid, branch_id, status, gmt_create, gmt_modified "
+ "from " + LOCAL_TCC_LOG_PLACEHOLD
+ " where gmt_modified < ? "
+ " and status in (" + CommonFenceConstant.STATUS_COMMITTED + " , " + CommonFenceConstant.STATUS_ROLLBACKED + " , " + CommonFenceConstant.STATUS_SUSPENDED + ")"
+ " limit ?";

/**
* The constant QUERY_BY_BRANCH_ID_AND_XID.
*/
Expand Down

0 comments on commit c22aea7

Please sign in to comment.