Skip to content

Commit

Permalink
Merge PR #434: Add || operator to default SQL dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
nene authored Sep 6, 2022
2 parents 90b6caa + f530b6a commit 5f688e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/languages/sql/sql.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default class SqlFormatter extends Formatter {
],
identTypes: [`""-qq`, '``'],
paramTypes: { positional: true },
operators: ['||'],
});
}
}
2 changes: 1 addition & 1 deletion test/sql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('SqlFormatter', () => {
supportsSchema(format);
supportsJoin(format);
supportsSetOperations(format);
supportsOperators(format, []);
supportsOperators(format, ['||']);
supportsParams(format, { positional: true });
supportsWindow(format);
supportsLimiting(format, { limit: true, offset: true, fetchFirst: true, fetchNext: true });
Expand Down

0 comments on commit 5f688e1

Please sign in to comment.