PG documentation out of date

's Avatar


12 Aug, 2015 09:18 PM

The example uses BasicTypeMapping. I get errors when I try to do this, not to mention it's not consistent with the name of this class. The property type_mapping doesn't even exist on connection.

  1. Support Staff 1 Posted by lsegal on 15 Aug, 2015 07:26 PM

    lsegal's Avatar

    This documentation should be consistent with the 0.18.2 release of the gem. Are you still having issues with the docs?

  2. 2 Posted by Finzel, Jeremy on 17 Aug, 2015 02:02 PM

    Finzel, Jeremy's Avatar

    I have that exact version. That documentation is not correct. In version
    0.18.2, there is no such class PG::BasicTypeMapping and there is no such
    attribute PG::Connection.type_mapping. Can you check? The class is
    actually PG::BasicTypeMapForResults. The actual attribute is

    It is the example that is wrong.

    *Jeremy Finzel*

    *Senior Database Developer*
    *M* 630-777-4520

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac