fixed testcase

This commit is contained in:
wenshao
2012-07-18 08:21:52 +08:00
parent fb06c9a0b4
commit 002b2fbcee
3 changed files with 3 additions and 3 deletions
@@ -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 {
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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