Using DBI

David Miller justdave at
Fri Jan 17 19:19:40 UTC 2003

On 1/17/03 11:01 AM -0800, Jonathan Schatz wrote:

> On Fri, 2003-01-17 at 06:12, Bradley Baetz wrote:
>> A quick summary:
>> - Don't use SendSQL (or {Push,Pop}GlobalSQLState/MoreSQLData/etc. They
>> won't work w/o SendSQL anyway)
>> - Use the DBI helper functions. They're easier to write, clearer to
>> understand, and some of them are written in XS (ie C) which makes them
>> faster. (Postgres doesn't use the C version, and you must have compiled
>> your DBD:: driver _after_ installing the updated DBI for the C version
>> to be used)
> does there exist the possibility of keeping the old *SQL functions
> working by changing them to use DBI? i didn't know this was coming, and
> you've magically added an extra week's worth of work to my current
> project.

The old *SQL functions are still there.  You have to "use Bugzilla::DB qw(
:deprecated )" to get them, but they're there.  If you already have
something written using them, by all means don't feel like you have to
change it now.  The conversion is an ongoing thing, and someone else will
probably convert it down the road if it's something you're contributing.
Dave Miller      Project Leader, Bugzilla Bug Tracking System   

More information about the developers mailing list