Reword documentation for `escape_string` and `escape_bytea`

Issue #205 resolved
Islam Azab
created an issue

Which one is 'safer'?

In the documentation it says that both are! http://www.rubydoc.info/gems/pg/PG/Connection.escape_string http://www.rubydoc.info/gems/pg/PG/Connection.escape_bytea

I think escape_bytea would be safer, for example when escaping something ending with a backslash ( some_strange_string\ )

Comments (4)

  1. Michael Granger repo owner

    Clarify differences between class and instance escape methods.

    Borrow the wording from the PostgreSQL docs about the difference between class and instance variants of escape_string and escape_bytea for PG::Connection. Fixes #205.

    → <<cset 01a8e779edb2>>

  2. Log in to comment