Skip to content

Commit cf5c0b1

Browse files
remove unnecessary if statement
1 parent 7401924 commit cf5c0b1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/bsql/query.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func (s *SQLSyncer) PrepareQueryVars(ctx context.Context, inputs map[string]any,
382382
}
383383

384384
// normalizeValue converts CEL null types and other special values to Go nil for SQL compatibility
385-
// Also converts booleans to strings ('1'/'0') for Oracle compatibility when used in DECODE statements.
385+
// Also converts booleans to strings ("1"/"0") for Oracle compatibility when used in DECODE statements.
386386
func (s *SQLSyncer) normalizeValue(val interface{}) interface{} {
387387
if val == nil {
388388
return nil
@@ -391,10 +391,6 @@ func (s *SQLSyncer) normalizeValue(val interface{}) interface{} {
391391
// Check for CEL null types
392392
switch v := val.(type) {
393393
case string:
394-
// CEL might return "NULL_VALUE" as a string representation
395-
if v == "NULL_VALUE" {
396-
return nil
397-
}
398394
return v
399395
case types.Null:
400396
// CEL Null type

0 commit comments

Comments
 (0)