Skip to content

Commit 5f688e1

Browse files
authored
Merge PR #434: Add || operator to default SQL dialect
2 parents 90b6caa + f530b6a commit 5f688e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/languages/sql/sql.formatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export default class SqlFormatter extends Formatter {
8484
],
8585
identTypes: [`""-qq`, '``'],
8686
paramTypes: { positional: true },
87+
operators: ['||'],
8788
});
8889
}
8990
}

test/sql.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('SqlFormatter', () => {
5050
supportsSchema(format);
5151
supportsJoin(format);
5252
supportsSetOperations(format);
53-
supportsOperators(format, []);
53+
supportsOperators(format, ['||']);
5454
supportsParams(format, { positional: true });
5555
supportsWindow(format);
5656
supportsLimiting(format, { limit: true, offset: true, fetchFirst: true, fetchNext: true });

0 commit comments

Comments
 (0)