[wp-hackers] PostgreSQL port status?
Jacob
wordpress at santosj.name
Mon Oct 1 02:01:54 GMT 2007
Ah, not bad, if you replace the global $wpdb with your class and provide
the same methods and properties, that would work.
However, my previous post is an possible implementation that wouldn't
require this step.
Jacob Santos
DD32 wrote:
> On Mon, 01 Oct 2007 11:22:48 +1000, Jacob <wordpress at santosj.name> wrote:
>
>> My thoughts was having all of the queries as filters specific to the
>> function and query. You would end up with about several hundred filters,
>> but it would allow for the easiest transition. It wouldn't be as hard or
>> difficult as porting and can be just a plugin. It would also allow for
>> removing upgrading conflicts.
>>
>
> That'd be rather pointless IMO, If your wanting to replace the database, then you use your own db class file anyway, All queries will be passed directly to the class, Your code would handle the query before its made.
>
> It would probably be easier if all of WP used the prepare() functionality that 2.3 has introduced, AFAIK that means it'll be using something like "SELECT `id` FROM `table` WHERE `name` = '%s' ORDER BY %s" with parameters passed in, It would make it a lot easier for the database class to replace 'dodgy' queries with something more friendly for that database.
>
> D
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list