Skip to content

Commit

Permalink
Add test case for issue 433.
Browse files Browse the repository at this point in the history
  • Loading branch information
haocao committed Nov 17, 2017
1 parent 942997c commit 0db7740
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@
<data expected="select_aggregate/SelectCount.xml" />
</sharding-rule>
</sql>
<sql id="assertSelectSumAlias">
<sharding-rule>
<data expected="select_aggregate/SelectSum.xml" />
</sharding-rule>
</sql>
</sqls>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
<sql id="assertSelectMin" value="SELECT MIN(user_id) AS min_user_id FROM t_order" />
<sql id="assertSelectAvg" value="SELECT AVG(user_id) AS user_id_avg FROM t_order" />
<sql id="assertSelectCountForSpecialSymbol" value="SELECT COUNT(`order_id`) AS orders_count FROM t_order" type="MySQL" />
<sql id="assertSelectSumAlias" value="SELECT SUM(o.user_id) AS max_user_id FROM t_order AS o LEFT JOIN t_order_item i ON (o.order_id = i.order_id)" />
</sqls>

0 comments on commit 0db7740

Please sign in to comment.