Replies: 2 comments
-
Try the skip_saving_columns plugin: https://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/SkipSavingColumns.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
That did the trick thank you sir |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a sequel model like this, on MSSQL DB (tinysql adapter):
class Code < Sequel::Model(DB1[:HEL_CodeTranslation])
set_primary_key [:DataSourcePrefix, :Type, :ParentForeignCode, :ForeignCode]
end
The SQL table also has an identity column (ID), this is not part of the primary key.
When I retrieve a record and edit it, the c.save line is throwing the error (Cannot update identity column 'ID'):
How can I tell sequel that the ID column is an identity column and should thus not be updated?
Beta Was this translation helpful? Give feedback.
All reactions