diff --git a/src/languages/db2i/db2i.formatter.ts b/src/languages/db2i/db2i.formatter.ts index f4da84f93c..a9e424917a 100644 --- a/src/languages/db2i/db2i.formatter.ts +++ b/src/languages/db2i/db2i.formatter.ts @@ -172,7 +172,7 @@ export const db2i: DialectOptions = { identChars: { first: '@#$', rest: '@#$' }, paramTypes: { positional: true, named: [':'] }, paramChars: { first: '@#$', rest: '@#$' }, - operators: ['**', '¬=', '¬>', '¬<', '!>', '!<', '||'], + operators: ['**', '¬=', '¬>', '¬<', '!>', '!<', '||', '=>'], }, formatOptions: { onelineClauses, diff --git a/test/db2i.test.ts b/test/db2i.test.ts index d59d608a77..36b3c23885 100644 --- a/test/db2i.test.ts +++ b/test/db2i.test.ts @@ -27,5 +27,5 @@ describe('Db2iFormatter', () => { without: ['NATURAL'], additionally: ['EXCEPTION JOIN', 'LEFT EXCEPTION JOIN', 'RIGHT EXCEPTION JOIN'], }); - supportsOperators(format, ['**', '¬=', '¬>', '¬<', '!>', '!<', '||']); + supportsOperators(format, ['**', '¬=', '¬>', '¬<', '!>', '!<', '||', '=>']); });