Skip to content

Commit

Permalink
MB-53416. Set Conditional for NVL/NVL2/Decode/IfMissing/IfNull
Browse files Browse the repository at this point in the history
Change-Id: I2f91b47955ce8dd89ba878b7f91b31d121918b1f
Reviewed-on: https://review.couchbase.org/c/query/+/178955
Reviewed-by: Bingjie Miao <bingjie.miao@couchbase.com>
Tested-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
  • Loading branch information
sitaramv committed Aug 17, 2022
1 parent 6502af2 commit 568270f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions expression/func_cond_unknown.go
Expand Up @@ -259,6 +259,7 @@ func NewMissingIf(first, second Expression) Function {
*NewBinaryFunctionBase("missingif", first, second),
}

rv.setConditional()
rv.expr = rv
return rv
}
Expand Down Expand Up @@ -333,6 +334,7 @@ func NewNullIf(first, second Expression) Function {
*NewBinaryFunctionBase("nullif", first, second),
}

rv.setConditional()
rv.expr = rv
return rv
}
Expand Down Expand Up @@ -407,6 +409,7 @@ func NewNVL(first, second Expression) Function {
*NewBinaryFunctionBase("nvl", first, second),
}

rv.setConditional()
rv.expr = rv
return rv
}
Expand Down Expand Up @@ -476,6 +479,7 @@ func NewNVL2(first, second, third Expression) Function {
*NewTernaryFunctionBase("nvl2", first, second, third),
}

rv.setConditional()
rv.expr = rv
return rv
}
Expand Down Expand Up @@ -536,6 +540,7 @@ func NewDecode(operands ...Expression) Function {
*NewFunctionBase("decode", operands...),
}

rv.setConditional()
rv.expr = rv
return rv
}
Expand Down

0 comments on commit 568270f

Please sign in to comment.