kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject incubator-kylin git commit: KYLIN-1078 Cannot have comments in the end of New Query textbox
Date Wed, 04 Nov 2015 08:26:30 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/2.x-staging 2cda2c970 -> 55a95650f


KYLIN-1078 Cannot have comments in the end of New Query textbox

Signed-off-by: Li, Yang <yangli9@ebay.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/55a95650
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/55a95650
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/55a95650

Branch: refs/heads/2.x-staging
Commit: 55a95650fe9ad6c23857f44ab41f2b38c5fe6602
Parents: 2cda2c9
Author: lidongsjtu <dongli@ebay.com>
Authored: Wed Nov 4 16:17:01 2015 +0800
Committer: Li, Yang <yangli9@ebay.com>
Committed: Wed Nov 4 16:26:20 2015 +0800

----------------------------------------------------------------------
 server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/55a95650/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java b/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
index 9b5e925..a08d2bd 100644
--- a/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
+++ b/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
@@ -107,12 +107,12 @@ public class QueryUtil {
 
         int limit = sqlRequest.getLimit();
         if (limit > 0 && !sql.toLowerCase().contains("limit")) {
-            sql += (" LIMIT " + limit);
+            sql += ("\nLIMIT " + limit);
         }
 
         int offset = sqlRequest.getOffset();
         if (offset > 0 && !sql.toLowerCase().contains("offset")) {
-            sql += (" OFFSET " + offset);
+            sql += ("\nOFFSET " + offset);
         }
         
         return healSickSql(sql);


Mime
View raw message