Tables with generated columns do not (always?) return the generated value after an insert when a RETURNING clause is used. The value is generated, and selecting the row afterwards does return the generated value.
Just wanted to add that this issue is being tracked internally. So far it seems to be an issue with an interaction between the PG translator and the GSQL reference implementation.
Tables with generated columns do not (always?) return the generated value after an insert when a
RETURNING
clause is used. The value is generated, and selecting the row afterwards does return the generated value.Reproduction steps
Start PGAdapter + Emulator and psql
Run the following SQL statements: