in reply to Re: Tie-DBI fails tests under Perl 5.6.1 and Perl 5.8.0
in thread Tie-DBI fails tests under Perl 5.6.1 and Perl 5.8.0

Thanks for this.

I only wanted it because Template-Toolkit uses it as its method of getting at DBI data.
I'll just continue using my yucky "select * and stuff it into a hash" approach ...

A.

  • Comment on Re: Re: Tie-DBI fails tests under Perl 5.6.1 and Perl 5.8.0

Replies are listed 'Best First'.
Re: Re: Re: Tie-DBI fails tests under Perl 5.6.1 and Perl 5.8.0
by perrin (Chancellor) on Mar 03, 2003 at 17:41 UTC
    The DBI plugin (which I recommend you avoid like the plague since putting SQL in the middle of your HTML is a bad practice) can optionally use Tie::DBI, but does not require it. Tie::DBI is pretty much the slowest way you can access DBI data. You'll be much better off if you simply write the SQL.
Re^3: Tie-DBI fails tests under Perl 5.6.1 and Perl 5.8.0
by Aristotle (Chancellor) on Mar 09, 2003 at 04:07 UTC
    Is it maybe possible for you to model your data using Class::DBI derived classes? This way, you can avoid writing any SQL unless necessary, and you could just pass a couple objects to your templates.

    Makeshifts last the longest.