mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed testcase
This commit is contained in:
@@ -152,7 +152,7 @@ public class DMLSelectParserTest extends TestCase {
|
||||
SQLStatement stmt = parser.parseStatementList().get(0);
|
||||
parser.match(Token.EOF);
|
||||
String output = SQLUtils.toMySqlString(stmt);
|
||||
Assert.assertEquals("SELECT SQL_CACHE id1, max(id2)\nFROM tb1\nGROUP BY id1\nHAVING id1 > 10\nORDER BY id3 DESC", output);
|
||||
Assert.assertEquals("SELECT SQL_CACHE id1, MAX(id2)\nFROM tb1\nGROUP BY id1\nHAVING id1 > 10\nORDER BY id3 DESC", output);
|
||||
}
|
||||
|
||||
public void test_select_10() throws Exception {
|
||||
|
||||
@@ -8,7 +8,7 @@ ORDER BY e.word_alias,a.createtime DESC
|
||||
|
||||
|
||||
---------------------------
|
||||
SELECT Count(*)
|
||||
SELECT COUNT(*)
|
||||
FROM q_matchrelation a, q_offerdetail b, q_keyword e, Q_ADCREATIVE f
|
||||
WHERE a.offerid = b.offerid
|
||||
AND a.keywordid = e.keywordid
|
||||
|
||||
@@ -37,7 +37,7 @@ from (
|
||||
|
||||
|
||||
---------------------------
|
||||
SELECT count(*)
|
||||
SELECT COUNT(*)
|
||||
FROM (SELECT a.activity_offer_id AS adResourceId, a.title AS adResourceName, a.b2boffer_url AS adResourceURL, a.custid, b.memberid
|
||||
, c.position_name AS positionName, c.charge_setting AS feeRegulation, a.priority_weight AS priorityWeight, a.audit_state AS adResourceState, 0 AS adResourceType
|
||||
, a.gmt_create, a.refuse_remark
|
||||
|
||||
Reference in New Issue
Block a user