PG documentation out of date
http://www.rubydoc.info/gems/pg/PG/BasicTypeMapForResults
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.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by lsegal on 15 Aug, 2015 07:26 PM
This documentation should be consistent with the 0.18.2 release of the gem. Are you still having issues with the docs?
2 Posted by Finzel, Jeremy on 17 Aug, 2015 02:02 PM
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
PG::Connection.type_map_for_result.
It is the example that is wrong.
*Jeremy Finzel*
*Senior Database Developer*
*M* 630-777-4520