Re: Automating an MDB2 Change Log

From: Date: Fri, 24 Oct 2008 23:30:45 +0000
Subject: Re: Automating an MDB2 Change Log
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29359@lists.php.net to get a copy of this message
Hi Christian, I thought I'd replied to your last post some time ago but after stumbling across this thread on Nabble, it appears that I didn't. I did try to follow your suggestions and made some headway, but ran into issues with (if I remember correctly) my system's PEAR include pathing and again wound up spending more time than I had trying to get things working and abandoned the project again. If I ever get it working, I'll return and update the thread with my solution. Thanks again, Charles Mayo Bugzilla from cweiske@cweiske.de wrote: > > 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 =- > > > -- View this message in context: http://www.nabble.com/Automating-an-MDB2-Change-Log-tp19554927p20159420.html Sent from the Pear - General mailing list archive at Nabble.com.

« previous php.pear.general (#29359) next »