Re: Fetch the DBD driver type from a database handle?
From: Daniel Kasak (dkasak_at_nusconsulting.com.au)
Date: 11/17/04
- Next message: Giovanni Borri: "DBD::Oracle question"
- Previous message: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- In reply to: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- Next in thread: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- Reply: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Nov 2004 08:52:16 +1100 To: Michael A Chase <mchase@ix.netcom.com>, DBI Users <dbi-users@perl.org>
Michael A Chase wrote:
>Quoting Daniel Kasak <dkasak@nusconsulting.com.au>:
>
>
>
>>Hi all.
>>
>>I'm writing some code that needs to be able to figure out what DBD
>>driver is working with a current database *handle* ( so I can take
>>advantage of more advanced features of some drivers ).
>>
>>How do I do that?
>>
>>
>
>>From DBI.pm:
>====
>Driver (handle)
>Holds the handle of the parent driver. The only recommended use for this is to
>find the name of the driver using:
>
> $dbh->{Driver}->{Name}
>====
>
>--
>Mac :})
>
>
Aha!
Looking inside the source, eh?
Makes sense. I was looking in the docs.
Thanks :)
-- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au
- Next message: Giovanni Borri: "DBD::Oracle question"
- Previous message: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- In reply to: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- Next in thread: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- Reply: Michael A Chase: "Re: Fetch the DBD driver type from a database handle?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|