From 165583a60bbc0f90fb71ce60111f02c21147cc56 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Thu, 3 Aug 2017 14:28:29 +0800 Subject: [PATCH] Print exprList in printOperatorExpression --- src/util/sqlhelper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/sqlhelper.cpp b/src/util/sqlhelper.cpp index 47c386c..0e45713 100644 --- a/src/util/sqlhelper.cpp +++ b/src/util/sqlhelper.cpp @@ -77,7 +77,11 @@ namespace hsql { break; } printExpression(expr->expr, numIndent + 1); - if (expr->expr2 != nullptr) printExpression(expr->expr2, numIndent + 1); + if (expr->expr2 != nullptr) { + printExpression(expr->expr2, numIndent + 1); + } else if (expr->exprList != nullptr) { + for (Expr* e : *expr->exprList) printExpression(e, numIndent + 1); + } } void printExpression(Expr* expr, uintmax_t numIndent) {