@@ -52,7 +52,7 @@ describe('DuckDBFormatter', () => {
5252 supportsOnConflict ( format ) ;
5353 supportsUpdate ( format ) ;
5454 supportsTruncateTable ( format , { withTable : false , withoutTable : true } ) ;
55- supportsStrings ( format , [ "''-qq" , "X''" , "B''" , "E''" ] ) ;
55+ supportsStrings ( format , [ "''-qq" , "X''" , "B''" , "E''" , '$$' ] ) ;
5656 supportsIdentifiers ( format , [ `""-qq` ] ) ;
5757 supportsBetween ( format ) ;
5858 // Missing: '::' type cast (tested separately)
@@ -137,26 +137,6 @@ describe('DuckDBFormatter', () => {
137137 ` ) ;
138138 } ) ;
139139
140- // DuckDB-specific string types
141- it ( 'supports basic dollar-quoted strings' , ( ) => {
142- expect ( format ( '$$foo JOIN bar$$' ) ) . toBe ( '$$foo JOIN bar$$' ) ;
143- expect ( format ( '$$foo $ JOIN bar$$' ) ) . toBe ( '$$foo $ JOIN bar$$' ) ;
144- expect ( format ( '$$foo \n bar$$' ) ) . toBe ( '$$foo \n bar$$' ) ;
145- expect ( format ( 'SELECT $$where$$ FROM $$update$$' ) ) . toBe ( dedent `
146- SELECT
147- $$where$$
148- FROM
149- $$update$$
150- ` ) ;
151- } ) ;
152-
153- // TODO: this conflicts with named parameter syntax: $foo
154- it . skip ( 'supports tagged dollar-quoted strings' , ( ) => {
155- expect ( format ( '$xxx$foo $$ LEFT JOIN $yyy$ bar$xxx$' ) ) . toBe (
156- '$xxx$foo $$ LEFT JOIN $yyy$ bar$xxx$'
157- ) ;
158- } ) ;
159-
160140 it ( 'formats type-cast operator without spaces' , ( ) => {
161141 expect ( format ( 'SELECT 2 :: numeric AS foo;' ) ) . toBe ( dedent `
162142 SELECT
0 commit comments