Impostor icon indicating copy to clipboard operation
Impostor copied to clipboard

Use proper specific type for 'id'

Open aPinat opened this issue 4 years ago • 1 comments

IDENTITY is supposed to be used since its introduction in Postgres 10 anyways.. Also the bot never generates the ID itself, so let Postgres just do it always. Fixes the weird NotNullConstraintViolationException people have.

aPinat avatar Oct 18 '20 12:10 aPinat

Only works, if you don't connect back to the same session... Because the ALWAYS doesn't allow Postgres to overwrite. Alt would have been `PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, but apparently it results in the same exception. So, just leave it open for now I guess...

aPinat avatar Oct 18 '20 13:10 aPinat