SQL returns the SQL representation of this WHEN clause in the form "WHEN condition THEN result".
()
| 257 | // SQL returns the SQL representation of this WHEN clause in the form |
| 258 | // "WHEN condition THEN result". |
| 259 | func (w *WhenClause) SQL() string { |
| 260 | if w == nil { |
| 261 | return "" |
| 262 | } |
| 263 | return fmt.Sprintf("WHEN %s THEN %s", exprSQL(w.Condition), exprSQL(w.Result)) |
| 264 | } |
| 265 | |
| 266 | // SQL returns the SQL representation of this BETWEEN expression. |
| 267 | // The NOT modifier is included when BetweenExpression.Not is true. |