aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kitchens <alexcameron98@gmail.com>2016-09-26 07:31:32 -0500
committerAlex Kitchens <alexcameron98@gmail.com>2016-09-26 07:31:32 -0500
commit7caaee932f81751db119315672bebce5173728ad (patch)
tree7491d67c9f235f973a2be906c9202eee12191461
parent134a008e79f367a40272fe3cace1424a23c50701 (diff)
downloadrails-7caaee932f81751db119315672bebce5173728ad.tar.gz
rails-7caaee932f81751db119315672bebce5173728ad.tar.bz2
rails-7caaee932f81751db119315672bebce5173728ad.zip
[ci skip] Update PG adapter documentation
Per discussion in pull request #26622: "Let's change it to PG::Error. The more specific classes mentioned are subclasses, and the fact the raised exception is a PG::UndefinedColumn doesn't change the fact that it's also a PG::Error." - matthewd
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
index 24ee442d3d..092543259f 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
@@ -90,7 +90,7 @@ module ActiveRecord
end
# Executes an SQL statement, returning a PG::Result object on success
- # or raising a PG exception otherwise.
+ # or raising a PG::Error exception otherwise.
# Note: the PG::Result object is manually memory managed; if you don't
# need it specifically, you may want consider the <tt>exec_query</tt> wrapper.
def execute(sql, name = nil)