Skip to content

Commit

Permalink
for #540
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Jan 16, 2018
1 parent 8305294 commit 04ed43f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sharding-jdbc-core/src/test/resources/parser/select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@
</assert>
<assert id="assertSelectAliasWithKeyword" parameters="1">
<tables>
<table name="t_order_item" alias="item" />
<table name="t_order_item" alias="length" />
</tables>
<table-tokens>
<table-token begin-position="34" original-literals="t_order_item" />
<table-token begin-position="36" original-literals="t_order_item" />
</table-tokens>
<conditions>
<condition column-name="item_id" table-name="t_order_item" operator="EQUAL">
Expand Down
2 changes: 1 addition & 1 deletion sharding-jdbc-core/src/test/resources/sql/dql/select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
<sql id="assertSelectWithUpperCaseBindingTableAndConfigTable" value="SELECT i.*,c.status c_status FROM T_ORDER o JOIN T_order_item i ON o.user_id = i.user_id AND o.order_id = i.order_id JOIN t_config c ON o.status = c.status WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s AND c.status = %s ORDER BY i.item_id" />
<sql id="assertSelectCountWithBindingTable" value="SELECT COUNT(*) AS items_count FROM t_order o, t_order_item i WHERE o.user_id = i.user_id AND o.order_id = i.order_id AND o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s" />
<sql id="assertSelectCountWithBindingTableWithJoin" value="SELECT COUNT(*) AS items_count FROM t_order o JOIN t_order_item i ON o.user_id = i.user_id AND o.order_id = i.order_id WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s" />
<sql id="assertSelectAliasWithKeyword" value="SELECT item.item_id password FROM t_order_item item where item.item_id = %s " type="H2,MySQL"/>
<sql id="assertSelectAliasWithKeyword" value="SELECT length.item_id password FROM t_order_item length where length.item_id = %s " type="H2,MySQL"/>
</sqls>

0 comments on commit 04ed43f

Please sign in to comment.