mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
parseOperand was assuming that any reference to MIN in a place where an operand was expected was a call, which it should be, but it might not be. parseCallExpression panics if it doesn't find a parenthesis, because it's never supposed to be called when we don't know we have one. The test for this is in with MinMaxColumnConstraints, even though it's actually a test of MinMaxFunctionCalls, because that's where the other tests involving the special MIN/MAX tokens live. We also stop checking whether MIN or MAX might actually be QIDENT. If you use a quoted identifier, we're over in the QIDENT case, not the MIN/MAX case. If the token was MIN or MAX, it's always unquoted. |
||
|---|---|---|
| .. | ||
| ast.go | ||
| ast_test.go | ||
| astdatatype.go | ||
| parser.go | ||
| parser_test.go | ||
| scanner.go | ||
| scanner_test.go | ||
| token.go | ||
| token_test.go | ||
| walk.go | ||