Support » Plugins and Hacks » PostgreSQL for WordPress (PG4WP) » [Plugin: PostgreSQL for WordPress (PG4WP)] Minor change required to make this work

Viewing 3 replies - 1 through 3 (of 3 total)
  • ogmandrake

    (@ogmandrake)


    I think this was actually version 3.0.3, didn’t try 3.1.

    ogmandrake

    (@ogmandrake)


    Also the users were not loading so I added some code to fix the queries so that the Order By fields were always listed in the select statement. Not pretty but it seemed to work everywhere I went.

    For reference, here is the line of code that I added to the selects:
    $sql = preg_replace(‘/(^SELECT DISTINCT\(.+?\))(.+?ORDER BY )(.+?)(\b.+?$)/’, ‘$1,$3$2$3$4’, $sql);

    and you can also find more info in the comments at my blog: http://blog.beefyapps.com/2010/12/wordpress-postgresql-trouble-php-fatal-error-cannot-redeclare-class-wpdb/

    If you want me to send you the entire file drop me a line on the blog.

    avendanl

    (@avendanl)


    Hi,
    are you using any plugins that require interaction with pgsql? I am having the hardest time trying to get pg4wp to play well with Formidable….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: PostgreSQL for WordPress (PG4WP)] Minor change required to make this work’ is closed to new replies.