From 1b0e9ce86f4a367ca26f41d790dedac6e5dbc23f Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 9 May 2019 20:36:59 +0100 Subject: [PATCH] Ensure IF ELSE statements are not surrounded by brackets --- sql/string.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/string.go b/sql/string.go index 73f64f7b..12939cac 100644 --- a/sql/string.go +++ b/sql/string.go @@ -802,7 +802,7 @@ func (this Polygon) JSON() string { func (this SubExpression) String() string { switch this.Expr.(type) { - case IfelseStatement: + case *IfelseStatement: return print("%v", this.Expr) default: return print("(%v)", this.Expr)