aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2017-04-18 12:16:58 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2017-05-30 16:45:20 +0000
commit47cb924d9122fc00deeb9aa4db7a92685ae9e7ef (patch)
treea919fe80ba9b08a745dc95f5f18eaed627c252ca /activemodel
parenteb804ad5a783e1e97720ef55a91b6aae7ebd724f (diff)
downloadrails-47cb924d9122fc00deeb9aa4db7a92685ae9e7ef.tar.gz
rails-47cb924d9122fc00deeb9aa4db7a92685ae9e7ef.tar.bz2
rails-47cb924d9122fc00deeb9aa4db7a92685ae9e7ef.zip
Support PostgreSQL 10 `pg_sequence`
Another fix for #28780 based on discussions at #28789 - In PostgreSQL 10 each sequence does not know its `min_value`. A new system catalog `pg_sequence` shows it as `seqmin`. Refer https://github.com/postgres/postgres/commit/1753b1b027035029c2a2a1649065762fafbf63f3 - `setval` 3rd argument needs to set to `false` only when the table has no rows to avoid `nextval(<sequence_name>)` returns `2` where `1` is expected. - `min_value` is only necessary when the table has no rows. It used to be necessary since the 3rd argument of `setval` is always `false`.
Diffstat (limited to 'activemodel')
0 files changed, 0 insertions, 0 deletions