On Tue, Nov 07, 2006 at 11:49:29AM -0800, Ammon Riley wrote:
> Hi Tim,
>
> > Ignore install_method and think about method attributes. For example:
> >
> > $sth->bind_param(1, $value, {
> > ora_type => 97,
> > ix_type => 42,
> > syb_type => 82,
> > pts_type => 13,
> > }
> >
> > If you don't want to register the driver then using x_pts_ as a prefix
> > doesn't seem like much of a burden.
>
> I knew there was something I was missing while thinking about this
> (I'm not the one that writes all the DBI code around here, so writing
> this driver has been my initial foray into this world).
Welcome to the asylum :)
(Patches to the DBI::DBD docs to add any hard-won wisdom are most welcome)
> So taking that bind_param() example, since my driver is unregistered,
> I'd write that as:
>
> $sth->bind_param(1, $value, {
> ora_type => 97,
> ix_type => 42,
> syb_type => 82,
> x_pts_type => 13,
> }
>
> In the event that someone *did* actually register an official 'pts_'
> prefix that gets distributed on CPAN, and we started using it, I could
> then write:
>
> $sth->bind_param(1, $value, {
> ora_type => 97,
> ix_type => 42,
> syb_type => 82,
> pts_type => 77,
> x_pts_type => 13,
> }
>
> I just want to clarify that I should also be using 'x_pts_' for my
> internal attribute names, and not just extra method names.
Yeap.
Tim.