Skip to content
Browse files

Document that pg 0.14.0+ is required for postgres Database#copy_into

This method uses PGResult#check, which was not introduced until
pg 0.14.0+ (previously an internal C function was used).  This
method is not safe to use with earlier pg versions, since it is
not possible to do error checking.
  • Loading branch information...
1 parent 1563a11 commit fa479908138755f794125fdd486db7956350ecc0 @jeremyevans committed Jan 14, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sequel/adapters/postgres.rb
View
3 lib/sequel/adapters/postgres.rb
@@ -289,7 +289,8 @@ def copy_table(table, opts={})
# +copy_into+ uses PostgreSQL's +COPY FROM STDIN+ SQL statement to do very fast inserts
# into a table using input preformatting in either CSV or PostgreSQL text format.
- # This method is only supported if pg is the underlying ruby driver. This method should only be called if you want
+ # This method is only supported if pg 0.14.0+ is the underlying ruby driver.
+ # This method should only be called if you want
# results returned to the client. If you are using +COPY FROM+
# with a filename, you should just use +run+ instead of this method.
#

0 comments on commit fa47990

Please sign in to comment.
Something went wrong with that request. Please try again.