Re: Automating an MDB2 Change Log
| From: | Christian Weiske | Date: | Sun, 21 Sep 2008 17:40:43 +0000 |
| Subject: | Re: Automating an MDB2 Change Log | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29281@lists.php.net to get a copy of this message | ||
Hello Charles,
> >>Your problem is here:
> >>> $mdb2 =& MDB2::factory($dsn);
>
> >>This code instantiates an object of class MDB2_Driver_mysql which
> >>uses
> MDB2 as parent class. I don't know a solution for your problem,
> though.
Call your class MDB2_Driver_audit and let it extend MDB2_Driver_mysql.
Then use dsn "audit://root:pass@host/database" and the factory code
should give you an instance of your class. You'll loose portability,
though - since your class is tied to mysql.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc