From a7076de9775041d16955da60ba306c9856f50ace Mon Sep 17 00:00:00 2001 From: hawk__ Date: Mon, 1 Feb 2010 21:45:55 +0000 Subject: [PATCH] Integrated Boris HUISGEN's patch for permalinks to work properly git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@200849 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/driver_pgsql.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index fc7e2fe..fbc9834 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -157,6 +157,9 @@ if( false !== strpos( $sql, 'USE INDEX (comment_date_gmt)')) $sql = str_replace( 'USE INDEX (comment_date_gmt)', '', $sql); + // HB : timestamp fix for permalinks + $sql = str_replace( 'post_date_gmt > 1970', 'post_date_gmt > to_timestamp (\‘1970\')', $sql); + // ZdMultiLang support hacks $sql = preg_replace( '/post_type="([^"]+)"/', 'post_type=\'$1\'', $sql); $sql = str_replace( 'link_url o_url', 'link_url AS o_url', $sql);