(in string, opt *SQLVal)
| 2230 | } |
| 2231 | |
| 2232 | func NewValArgWithOpt(in string, opt *SQLVal) *SQLVal { |
| 2233 | if opt != nil { |
| 2234 | return NewValArg(fmt.Sprintf("%s(%s)", in, opt.Val)) |
| 2235 | } |
| 2236 | return NewValArg(in) |
| 2237 | } |
| 2238 | |
| 2239 | // Format formats the node. |
| 2240 | func (node *SQLVal) Format(buf *nodeBuffer) { |