Conditional expression functions.
This commit is contained in:
parent
ca5a30983e
commit
dca028295d
7 changed files with 89 additions and 15 deletions
|
|
@ -124,7 +124,7 @@ type caseOperatorImpl struct {
|
|||
func CASE(expression ...expression) caseOperatorExpression {
|
||||
caseExp := &caseOperatorImpl{}
|
||||
|
||||
if len(expression) == 1 {
|
||||
if len(expression) > 0 {
|
||||
caseExp.expression = expression[0]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue