stmtSQL dispatches to the SQL() method of any statement
(s Statement)
| 1263 | |
| 1264 | // stmtSQL dispatches to the SQL() method of any statement |
| 1265 | func stmtSQL(s Statement) string { |
| 1266 | if s == nil { |
| 1267 | return "" |
| 1268 | } |
| 1269 | if sq, ok := s.(interface{ SQL() string }); ok { |
| 1270 | return sq.SQL() |
| 1271 | } |
| 1272 | return s.TokenLiteral() |
| 1273 | } |
| 1274 | |
| 1275 | func exprListSQL(exprs []Expression) string { |
| 1276 | parts := make([]string, len(exprs)) |