Skip to content

Commit 663963e

Browse files
author
Andreas Seltenreich
committed
grammar: Fix case_expr emitting true branch twice.
Found by github user Cnordg. Closes #59.
1 parent 46c1df7 commit 663963e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

expr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void case_expr::out(std::ostream &out)
6161
{
6262
out << "case when " << *condition;
6363
out << " then " << *true_expr;
64-
out << " else " << *true_expr;
64+
out << " else " << *false_expr;
6565
out << " end";
6666
indent(out);
6767
}

0 commit comments

Comments
 (0)