Remove surrounding brackets from SQL IF string

This commit is contained in:
Tobie Morgan Hitchcock 2019-03-05 11:39:56 +00:00
parent 07559e7ff8
commit 3f604c5087

View file

@ -801,9 +801,12 @@ func (this Polygon) JSON() string {
// ---------------------------------------------
func (this SubExpression) String() string {
return print("(%v)",
this.Expr,
)
switch this.Expr.(type) {
case IfelseStatement:
return print("%v", this.Expr)
default:
return print("(%v)", this.Expr)
}
}
func (this MultExpression) String() string {