ramblings on PHP, SQL, the web, politics, ultimate frisbee and what else is on in my life
back

MDB2 2.0.0RC1 is here!

Today I finally released the next MDB2 version which finally promises a stable API. I am hoping to actually be able to release the first release labeled as "stable" before the end of the year. I have also pushed new releases for the two MySQL drivers, the PostGreSQL driver, the Oracle OCI8 driver, the SQLite 2.x driver and the Querysim driver. Furthermore I have released an updated version of MDB2_Schema.

There were a few BC breaks in this release which should all be noted in the release notes. Most importantly I have split up the handling of queries that produce a result set from the ones that don't. This works around a number of issues that DB is facing and is unable to fix.:

// old style
$mdb2->query("INSERT INTO foo (bar) values (23)");
// new style
$mdb2->exec("INSERT INTO foo (bar) values (23)");

As a result a number of PEAR packages that support MDB2 might need an update. I have already tried to fix things for DB_DataObject which supports MDB2 (Alan references MDB2 as MDB) since a few releases.

I also released updated versions of Liveuser and LiveUser_Admin as well! Both are still in beta and so this release once again breaks BC in a number of ways. But remember its all for the better :-)

Finally I would like to point once again to the new subwiki on my site where I plan to maintain a listing of open source conferences. The good news is that other people have already contributed to this list! So please consider adding any conferences you know about that are not yet listed so make this a truely valueable ressources for us all.

Comments



Re: MDB2 2.0.0RC1 is here!

Hi Lukas,

I had a few questions. No reason other than curious:

Why did you choose to use $_GLOBALS over a static variable in the singleton function of MDB2?

Why does MDB2_Driver_Common extend PEAR?

- Matt