[wp-hackers] PostgreSQL port status?
computerguru at neosmart.net
Mon Oct 1 12:42:51 GMT 2007
Here's the ticket + patch. Tested with new install then upgrade to SVN, works fine here.
Gonna need another patch to *always* check for db.php instead of wp-db.php:
With these two in the bag you should be good to go with any query rewriters and database drivers stuck in wp-content/db.php.
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of Peter Westwood
> Sent: Monday, October 01, 2007 11:06 AM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] PostgreSQL port status?
> On Mon, October 1, 2007 6:12 am, Otto wrote:
> > Well, as has been stated before (somewhere...), patches that moved
> > sort of database stuff into wp-db.php would likely be very welcome.
> Indeed they would.
> wp-db.php is the only place in which WordPress should be calling mysql
> > On 9/30/07, Computer Guru <computerguru at neosmart.net> wrote:
> >> OK, ATM WordPress is already *technically* is extendable by sticking
> >> db.php in \wp-content\
> >> I've attached a db.php w/ the replaced MySQL functions, but
> >> unfortunately, WordPress doesn't honor its own system and has
> >> functions hard-coded into other files.
> >> Queries hard-coded into files I can understand, but there is
> >> no need to ever call mysql_* functions outside of wp-db.php....
> >> everything else should use that class.
> >> Right, so no guarantees or anything - I'm using the code from the
> >> forwarded by usleepless for the conversion.... I have to go right
> >> but assuming you can get wp-setup to use $wpdb instead of its own
> >> hard-coded mysql functions (shouldn't be too hard) it should work to
> >> some minimal extent :)
> Please raise a ticket on trac highlighting the places where we call
> functions and if possible a suggested fix - moving the functionality
> wp-db.php so that it can be overridden for other databases.
> You can assign it to me if you want and I will endeavour to get it
> in to trunk soon.
> Peter Westwood <peter.westwood at ftwr.co.uk>
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers