@@ -5,7 +5,6 @@ import { FormatFn } from '../../src/sqlFormatter.js';
55type IdentType =
66 | '""-qq' // with repeated-quote escaping
77 | '""-bs' // with backslash escaping
8- | '""-qq-bs' // with repeated-quote and backslash escaping
98 | '``' // with repeated-quote escaping
109 | '[]' // with ]] escaping
1110 | 'U&""' ; // with repeated-quote escaping
@@ -44,8 +43,8 @@ export default function supportsIdentifiers(format: FormatFn, identifierTypes: I
4443 }
4544
4645 if ( identifierTypes . includes ( '""-bs' ) ) {
47- it ( 'supports escaping double-quote by escaping it with a backslash ' , ( ) => {
48- expect ( format ( '"foo\\"bar"' ) ) . toBe ( '"foo\\"bar"' ) ;
46+ it ( 'supports backslash-escaped double-quoted identifiers ' , ( ) => {
47+ expect ( format ( '"foo \\" JOIN bar"' ) ) . toBe ( '"foo \\" JOIN bar"' ) ;
4948 } ) ;
5049
5150 if ( ! identifierTypes . includes ( '""-qq' ) ) {
@@ -55,12 +54,6 @@ export default function supportsIdentifiers(format: FormatFn, identifierTypes: I
5554 }
5655 }
5756
58- if ( identifierTypes . includes ( '""-qq-bs' ) ) {
59- it ( 'supports escaping double-quote with a backslash and a repeated quote' , ( ) => {
60- expect ( format ( '"foo \\" JOIN ""bar"' ) ) . toBe ( '"foo \\" JOIN ""bar"' ) ;
61- } ) ;
62- }
63-
6457 if ( identifierTypes . includes ( '``' ) ) {
6558 it ( 'supports backtick-quoted identifiers' , ( ) => {
6659 expect ( format ( '`foo JOIN bar`' ) ) . toBe ( '`foo JOIN bar`' ) ;
0 commit comments