diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-10-04 06:53:59 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-10-04 07:00:59 +0900 |
commit | 723ff351e105a3546f1112e70b7f6d204717127f (patch) | |
tree | 75416dbfb86b2687cb8a47a9a4e7dd0e17bb40e3 | |
parent | ca013649eab7b30aceb960ff14d50043cbea3d4c (diff) | |
download | rails-723ff351e105a3546f1112e70b7f6d204717127f.tar.gz rails-723ff351e105a3546f1112e70b7f6d204717127f.tar.bz2 rails-723ff351e105a3546f1112e70b7f6d204717127f.zip |
Prefer official name PostgreSQL over Postgres
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 4d37a292d6..5b6ad5fbc4 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -312,14 +312,14 @@ module ActiveRecord def get_advisory_lock(lock_id) # :nodoc: unless lock_id.is_a?(Integer) && lock_id.bit_length <= 63 - raise(ArgumentError, "Postgres requires advisory lock ids to be a signed 64 bit integer") + raise(ArgumentError, "PostgreSQL requires advisory lock ids to be a signed 64 bit integer") end query_value("SELECT pg_try_advisory_lock(#{lock_id})") end def release_advisory_lock(lock_id) # :nodoc: unless lock_id.is_a?(Integer) && lock_id.bit_length <= 63 - raise(ArgumentError, "Postgres requires advisory lock ids to be a signed 64 bit integer") + raise(ArgumentError, "PostgreSQL requires advisory lock ids to be a signed 64 bit integer") end query_value("SELECT pg_advisory_unlock(#{lock_id})") end |