ParseOne parses a sql statement string, ensuring that it contains only a single statement, and returns that Statement. ParseOne will always interpret the INT and SERIAL types as 64-bit types, since this is used in various internal-execution paths where we might receive bits of SQL from other nodes.
(sql string)
| 264 | // bits of SQL from other nodes. In general,earwe expect that all |
| 265 | // user-generated SQL has been run through the ParseWithInt() function. |
| 266 | func ParseOne(sql string) (Statement, error) { |
| 267 | var p Parser |
| 268 | return p.parseOneWithDepth(1, sql) |
| 269 | } |
| 270 | |
| 271 | // HasMultipleStatements returns true if the sql string contains more than one |
| 272 | // statements. |
no test coverage detected