Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 44467
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: greg [...] turnstep.com
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 2.12.0



Subject: The lo_ driver-private method names should start with pg_ and be installed via install_method
See http://search.cpan.org/~timb/DBI/lib/DBI/DBD.pm#Using_install_method()_to_expose_driver- private_methods A major bonus is that driver-private methods can then be called as normal DBI method: $dbh-> Apart from allowing driver-private methods to be called as normal DBI methods, another major bonus is that RaiseError/PrintError etc. all works as you'd expect. (Calling func() doesn't trigger RaiseError/PrintError etc., nor does it reset err, errstr etc.) All driver-private methods should have names that start with the driver prefix, 'pg_' for DBD::Pg. The install_method requires that. The lo_* methods could be given pg_lo_* aliases and then those could be installed via install_method.
Great suggestion, thanks. This seems like the best time to do it, while we are already messing around with the large object functions for the next version. Changes committed in r12626 and will be a part of the upcoming 2.12.0 release (2.11.8_1 is hitting CPAN now).