Skip to content

Commit

Permalink
Support named parameters in DB2i
Browse files Browse the repository at this point in the history
Fixes #664
  • Loading branch information
nene committed Nov 13, 2023
1 parent 9687adb commit 282b84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/languages/db2i/db2i.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const db2i: DialectOptions = {
identChars: { first: '@#$', rest: '@#$' },
paramTypes: { positional: true, named: [':'] },
paramChars: { first: '@#$', rest: '@#$' },
operators: ['**', '¬=', '¬>', '¬<', '!>', '!<', '||'],
operators: ['**', '¬=', '¬>', '¬<', '!>', '!<', '||', '=>'],
},
formatOptions: {
onelineClauses,
Expand Down
2 changes: 1 addition & 1 deletion test/db2i.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ describe('Db2iFormatter', () => {
without: ['NATURAL'],
additionally: ['EXCEPTION JOIN', 'LEFT EXCEPTION JOIN', 'RIGHT EXCEPTION JOIN'],
});
supportsOperators(format, ['**', '¬=', '¬>', '¬<', '!>', '!<', '||']);
supportsOperators(format, ['**', '¬=', '¬>', '¬<', '!>', '!<', '||', '=>']);
});

0 comments on commit 282b84d

Please sign in to comment.