Remove surrounding brackets from SQL IF string
This commit is contained in:
parent
07559e7ff8
commit
3f604c5087
1 changed files with 6 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue