We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df5d59 commit 94eb8e0Copy full SHA for 94eb8e0
lib/sequel/plugins/paged_operations.rb
@@ -60,7 +60,7 @@ module Plugins
60
# # ...
61
# # SELECT id FROM albums WHERE ((name <= 'M') AND (id >= 12345)) ORDER BY id LIMIT 1 OFFSET 4
62
# # UPDATE albums SET x = x + 1 WHERE ((name <= 'M') AND (id >= 12345))
63
- #
+ #
64
# You should avoid using +paged_update+ or +paged_datasets+
65
# with updates that modify the primary key, as such usage is
66
# not supported by this plugin.
@@ -159,7 +159,7 @@ def _paged_operations_pk(meth)
159
160
case pk = model.primary_key
161
when Symbol
162
- Sequel.identifier(pk)
+ Sequel[model.table_name][pk]
163
when Array
164
raise Error, "cannot use #{meth} on a model with a composite primary key"
165
else
0 commit comments