diff options
author | Peter Eisentraut | 2019-04-01 08:46:37 +0000 |
---|---|---|
committer | Peter Eisentraut | 2019-04-01 08:46:37 +0000 |
commit | 7241911782a7420e38b6e50b57d304ea48bc5362 (patch) | |
tree | 687e642d5b3256ab24d35cb4d16f86002c6f1df9 /src/include/postgres.h | |
parent | 4ae7f02b0364ccba49a82efbfff46125fb357d6c (diff) |
Catch syntax error in generated column definition
The syntax
GENERATED BY DEFAULT AS (expr)
is not allowed but we have to accept it in the grammar to avoid
shift/reduce conflicts because of the similar syntax for identity
columns. The existing code just ignored this, incorrectly. Add an
explicit error check and a bespoke error message.
Reported-by: Justin Pryzby <pryzby@telsasoft.com>
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions