On Tue, Nov 12, 2002 at 10:03:25AM -0700, Jason E. Stewart wrote: > "Tim Bunce" <[EMAIL PROTECTED]> writes: > > > > Fail with a placeholder value not bound error. > > Thanks for clarifying this Tim. > > Are you willing to accept a POD patch that makes that clearer in the docs?
Sure! > > Also, I see that DBD::Pg is not using the Driver.xst template provided > > by the DBI. That's not good. In fact these days that's actually bad. > > I'd go so far as to say that any compiled driver not using Driver.xst > > is unlikely to be behaving correctly. It's also missing out on the new > > high-performance implementations of fetchall_arrayref etc. > > > > I would urge DBD::Pg maintainers (and any other compiled driver authors > > not using Driver.xst) to switch to using it ASAP. > > Ok.... > > Could someone who's already using Driver.xst give me a brief > explanation of it's purpose and how it should be used. Take a look at http://search.cpan.org/author/TIMB/DBI-1.30/lib/DBI/DBD.pm#Driver_xs Read the pod and look at the code of the subs. Grab a copy of DBD::ODBC (or ::Oracle or ::mysql) and look at the <foo>.xs file and see how Makefile.PL does "use DBI::DBD;" and calls some dbd_* subs at keys places. Between those you should be able to work it all out. Just shout if not. Tim.
