Skip to content

Commit 3a1a7a8

Browse files
committed
Remove multi-word functions names from MySQL
Fixes #933
1 parent bda3c29 commit 3a1a7a8

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/languages/mysql/mysql.functions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export const functions: string[] = [
214214
'MBRTOUCHES',
215215
'MBRWITHIN',
216216
'MD5',
217-
'MEMBER OF',
217+
// 'MEMBER OF',
218218
'MICROSECOND',
219219
'MID',
220220
'MIN',
@@ -226,10 +226,10 @@ export const functions: string[] = [
226226
'MULTIPOINT',
227227
'MULTIPOLYGON',
228228
'NAME_CONST',
229-
'NOT',
230-
'NOT IN',
231-
'NOT LIKE',
232-
'NOT REGEXP',
229+
// 'NOT',
230+
// 'NOT IN',
231+
// 'NOT LIKE',
232+
// 'NOT REGEXP',
233233
'NOW',
234234
'NTH_VALUE',
235235
'NTILE',

test/features/operators.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function supportsOperators(
4646
expect(format('foo ALL bar')).toBe('foo ALL bar');
4747
expect(format('EXISTS bar')).toBe('EXISTS bar');
4848
expect(format('foo IN (1, 2, 3)')).toBe('foo IN (1, 2, 3)');
49+
expect(format('foo NOT IN (1, 2, 3)')).toBe('foo NOT IN (1, 2, 3)');
4950
expect(format("foo LIKE 'hello%'")).toBe("foo LIKE 'hello%'");
5051
expect(format('foo IS NULL')).toBe('foo IS NULL');
5152
expect(format('UNIQUE foo')).toBe('UNIQUE foo');

0 commit comments

Comments
 (0)