fix generated columns in mutable columns for PostgreSQL

Fix https://github.com/go-jet/jet/issues/209.
This commit is contained in:
Cedric L'homme 2023-01-30 10:42:06 -05:00
parent ce3c622fa4
commit a4191b4953
6 changed files with 20 additions and 1 deletions

View file

@ -11,7 +11,7 @@ func (t Table) MutableColumns() []Column {
var ret []Column
for _, column := range t.Columns {
if column.IsPrimaryKey {
if column.IsPrimaryKey || column.IsGenerated {
continue
}