File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -502,12 +502,10 @@ export class DefaultQueryCompiler
502
502
protected override visitValue ( node : ValueNode ) : void {
503
503
if ( node . immediate ) {
504
504
this . appendImmediateValue ( node . value )
505
+ } else if ( node . serialized ) {
506
+ this . appendSerializedValue ( node . value )
505
507
} else {
506
- this . appendValue (
507
- node . serialized && node . value !== null
508
- ? JSON . stringify ( node . value )
509
- : node . value ,
510
- )
508
+ this . appendValue ( node . value )
511
509
}
512
510
}
513
511
@@ -1671,6 +1669,14 @@ export class DefaultQueryCompiler
1671
1669
this . append ( this . getCurrentParameterPlaceholder ( ) )
1672
1670
}
1673
1671
1672
+ protected appendSerializedValue ( parameter : unknown ) : void {
1673
+ if ( parameter === null ) {
1674
+ this . appendValue ( null )
1675
+ } else {
1676
+ this . appendValue ( JSON . stringify ( parameter ) )
1677
+ }
1678
+ }
1679
+
1674
1680
protected getLeftIdentifierWrapper ( ) : string {
1675
1681
return '"'
1676
1682
}
You can’t perform that action at this time.
0 commit comments