From 7caaee932f81751db119315672bebce5173728ad Mon Sep 17 00:00:00 2001 From: Alex Kitchens Date: Mon, 26 Sep 2016 07:31:32 -0500 Subject: [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 --- .../active_record/connection_adapters/postgresql/database_statements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 exec_query wrapper. def execute(sql, name = nil) -- cgit v1.2.3