@@ -1620,7 +1620,16 @@ TNodePtr TSqlQuery::PragmaStatement(const TRule_pragma_stmt& stmt, bool& success
1620
1620
}
1621
1621
1622
1622
const bool withConfigure = prefix || normalizedPragma == " file" || normalizedPragma == " folder" || normalizedPragma == " udf" ;
1623
- static const THashSet<TStringBuf> lexicalScopePragmas = {" classicdivision" , " strictjoinkeytypes" , " disablestrictjoinkeytypes" , " checkedops" };
1623
+ static const THashSet<TStringBuf> lexicalScopePragmas = {
1624
+ " classicdivision" ,
1625
+ " strictjoinkeytypes" ,
1626
+ " disablestrictjoinkeytypes" ,
1627
+ " checkedops" ,
1628
+ " unicodeliterals" ,
1629
+ " disableunicodeliterals" ,
1630
+ " warnuntypedstringliterals" ,
1631
+ " disableuntypedstringliterals" ,
1632
+ };
1624
1633
const bool hasLexicalScope = withConfigure || lexicalScopePragmas.contains (normalizedPragma);
1625
1634
const bool withFileAlias = normalizedPragma == " file" || normalizedPragma == " folder" || normalizedPragma == " library" || normalizedPragma == " udf" ;
1626
1635
for (auto pragmaValue : pragmaValues) {
@@ -2190,6 +2199,18 @@ TNodePtr TSqlQuery::PragmaStatement(const TRule_pragma_stmt& stmt, bool& success
2190
2199
} else if (normalizedPragma == " disablestrictjoinkeytypes" ) {
2191
2200
Ctx.Scoped ->StrictJoinKeyTypes = false ;
2192
2201
Ctx.IncrementMonCounter (" sql_pragma" , " DisableStrictJoinKeyTypes" );
2202
+ } else if (normalizedPragma == " unicodeliterals" ) {
2203
+ Ctx.Scoped ->UnicodeLiterals = true ;
2204
+ Ctx.IncrementMonCounter (" sql_pragma" , " UnicodeLiterals" );
2205
+ } else if (normalizedPragma == " disableunicodeliterals" ) {
2206
+ Ctx.Scoped ->UnicodeLiterals = false ;
2207
+ Ctx.IncrementMonCounter (" sql_pragma" , " DisableUnicodeLiterals" );
2208
+ } else if (normalizedPragma == " warnuntypedstringliterals" ) {
2209
+ Ctx.Scoped ->WarnUntypedStringLiterals = true ;
2210
+ Ctx.IncrementMonCounter (" sql_pragma" , " WarnUntypedStringLiterals" );
2211
+ } else if (normalizedPragma == " disablewarnuntypedstringliterals" ) {
2212
+ Ctx.Scoped ->WarnUntypedStringLiterals = false ;
2213
+ Ctx.IncrementMonCounter (" sql_pragma" , " DisableWarnUntypedStringLiterals" );
2193
2214
} else if (normalizedPragma == " unorderedsubqueries" ) {
2194
2215
Ctx.UnorderedSubqueries = true ;
2195
2216
Ctx.IncrementMonCounter (" sql_pragma" , " UnorderedSubqueries" );
0 commit comments