Skip to content

Commit

Permalink
[ci skip] Update PG adapter documentation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexcameron89 committed Sep 26, 2016
1 parent 134a008 commit 7caaee9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ def query(sql, name = nil) #:nodoc:
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)
Expand Down

0 comments on commit 7caaee9

Please sign in to comment.