Repository: lens Updated Branches: refs/heads/master 776a2c331 -> acb32d540
LENS-1221: Saved Query service is unable to initialize Project: http://git-wip-us.apache.org/repos/asf/lens/repo Commit: http://git-wip-us.apache.org/repos/asf/lens/commit/3780744f Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/3780744f Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/3780744f Branch: refs/heads/master Commit: 3780744f87e89839d7d51ce069d5e84c66ca6740 Parents: 776a2c3 Author: Rajat Khandelwal <pro...@apache.org> Authored: Mon Jul 25 15:01:27 2016 +0530 Committer: Rajat Khandelwal <rajatgupt...@gmail.com> Committed: Mon Jul 25 15:01:27 2016 +0530 ---------------------------------------------------------------------- .../java/org/apache/lens/server/query/save/SavedQueryDao.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lens/blob/3780744f/lens-server/src/main/java/org/apache/lens/server/query/save/SavedQueryDao.java ---------------------------------------------------------------------- diff --git a/lens-server/src/main/java/org/apache/lens/server/query/save/SavedQueryDao.java b/lens-server/src/main/java/org/apache/lens/server/query/save/SavedQueryDao.java index 18d563d..75a8115 100644 --- a/lens-server/src/main/java/org/apache/lens/server/query/save/SavedQueryDao.java +++ b/lens-server/src/main/java/org/apache/lens/server/query/save/SavedQueryDao.java @@ -281,8 +281,8 @@ public class SavedQueryDao { + DESCRIPTION_COL_NAME + " varchar(255) DEFAULT NULL," + QUERY_COL_NAME + " longtext," + PARAMS_COL_NAME + " longtext," - + CREATED_AT_COL_NAME + " timestamp," - + UPDATED_AT_COL_NAME + " timestamp," + + CREATED_AT_COL_NAME + " timestamp DEFAULT CURRENT_TIMESTAMP," + + UPDATED_AT_COL_NAME + " timestamp DEFAULT CURRENT_TIMESTAMP," + " PRIMARY KEY ("+ ID_COL_NAME +")" + ")";