sql: nextval() returns sequence not exists error for column created with GENERATED BY DEFAULT AS IDENTITY #107234
Labels
A-tools-efcore
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
db-cy-23
O-community
Originated from the community
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
X-blathers-triaged
blathers was able to find an owner
Describe the problem
Calling
pg_get_serial_sequence
for a database column created withGENERATED BY DEFAULT AS IDENTITY
returns a sequence name but callingnextval
for the returned sequence returns error.To Reproduce
Create a table using the following
Running
returns
but
running
returns
Add any other context about the problem here.
This error is affecting a number of tests in efcore.pg library when running against CockroachDB
Jira issue: CRDB-29954
The text was updated successfully, but these errors were encountered: