|
|
@@ -314,7 +314,7 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- it ('should handle "SELECT bla NOT RLIKE \'ble\', ble NOT REGEXP \'b\' FROM tbl; |"', function () {
|
|
|
+ it('should handle "SELECT bla NOT RLIKE \'ble\', ble NOT REGEXP \'b\' FROM tbl; |"', function () {
|
|
|
assertAutoComplete({
|
|
|
beforeCursor: 'SELECT bla NOT RLIKE \'ble\', ble NOT REGEXP \'b\' FROM tbl; ',
|
|
|
afterCursor: '',
|
|
|
@@ -326,6 +326,18 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ it('should handle "SELECT * FROM tbl limit ${limit=20}; |"', function () {
|
|
|
+ assertAutoComplete({
|
|
|
+ beforeCursor: 'SELECT * FROM tbl limit ${limit=20}; ',
|
|
|
+ afterCursor: '',
|
|
|
+ noErrors: true,
|
|
|
+ containsKeywords: ['SELECT'],
|
|
|
+ expectedResult: {
|
|
|
+ lowerCase: false
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
it('should suggest columns "SELECT IF(baa, boo, bee) AS b, | FROM testTable;"', function () {
|
|
|
assertAutoComplete({
|
|
|
beforeCursor: 'SELECT IF(baa, boo, bee) AS b, ',
|