ParseExpr parses a SQL scalar expression. The caller is responsible for ensuring that the input is, in fact, a valid SQL scalar expression — the results are undefined if the string contains invalid SQL syntax.
(sql string)
| 381 | // expression — the results are undefined if the string contains |
| 382 | // invalid SQL syntax. |
| 383 | func ParseExpr(sql string) (tree.Expr, error) { |
| 384 | return ParseExprWithInt(sql, defaultNakedIntType) |
| 385 | } |
| 386 | |
| 387 | // ParseExprWithInt parses a SQL scalar expression, using the given |
| 388 | // type when INT is used as type name in the SQL syntax. The caller is |
no test coverage detected
searching dependent graphs…