You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case I have an ENUM as primary key. The companion marks the "group" parameter as optional, which is wrong, because primary key is always mandatory.
Heh, so here it's technically not required because ENUM maps values to an index, so this is an integer column in the database. And in sqlite3, a sole INTEGER PRIMARY KEY is an alias to the rowid which is auto-incrementing by default.
You could use ENUMNAME to work around the issue (while changing the schema obviously). I agree that this result is confusing, but special casing ENUM columns to be required is also deviating from the standard rules which is a bit weird.
If you prefer mapping to an index, you could consider a unique key instead of a primary key - that way you have an independent rowid column and the enum is required.
I found a minor bug :)
In this case I have an ENUM as primary key. The companion marks the "group" parameter as optional, which is wrong, because primary key is always mandatory.
build.yml:
The text was updated successfully, but these errors were encountered: