superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Update AceEditorWrapper.jsx (#7315)
Date Wed, 17 Apr 2019 15:11:26 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 7aa6c4e  Update AceEditorWrapper.jsx (#7315)
7aa6c4e is described below

commit 7aa6c4e9ca9437da64e5a79275ee45edae1119cd
Author: Fan Donglai <ddna_1022@163.com>
AuthorDate: Wed Apr 17 23:11:21 2019 +0800

    Update AceEditorWrapper.jsx (#7315)
    
    THEN is also a keyword in SQL
---
 superset/assets/src/SqlLab/components/AceEditorWrapper.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/SqlLab/components/AceEditorWrapper.jsx b/superset/assets/src/SqlLab/components/AceEditorWrapper.jsx
index 4b01b51..14a9775 100644
--- a/superset/assets/src/SqlLab/components/AceEditorWrapper.jsx
+++ b/superset/assets/src/SqlLab/components/AceEditorWrapper.jsx
@@ -29,7 +29,7 @@ const langTools = ace.acequire('ace/ext/language_tools');
 
 const keywords = (
   'SELECT|INSERT|UPDATE|DELETE|FROM|WHERE|AND|OR|GROUP|BY|ORDER|LIMIT|OFFSET|HAVING|AS|CASE|'
+
-  'WHEN|ELSE|END|TYPE|LEFT|RIGHT|JOIN|ON|OUTER|DESC|ASC|UNION|CREATE|TABLE|PRIMARY|KEY|IF|'
+
+  'WHEN|THEN|ELSE|END|TYPE|LEFT|RIGHT|JOIN|ON|OUTER|DESC|ASC|UNION|CREATE|TABLE|PRIMARY|KEY|IF|'
+
   'FOREIGN|NOT|REFERENCES|DEFAULT|NULL|INNER|CROSS|NATURAL|DATABASE|DROP|GRANT|SUM|MAX|MIN|COUNT|'
+
   'AVG|DISTINCT'
 );


Mime
View raw message