Catch syntax error in generated column definition

Peter Eisentraut <peter@eisentraut.org>

Commit: 7241911782a7420e38b6e50b57d304ea48bc5362
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-04-01T08:46:37Z
Releases: 12.0
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>

Files