Removed an old unused upgrade hack

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@557852 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2012-06-14 09:39:23 +00:00
parent cb8eb1231d
commit 3e2733096e

View File

@ -300,9 +300,6 @@
$pattern = '/[ ]*([^ ]*ID[^ ]*)[ ]*=/';
$sql = preg_replace( $pattern, ' "$1" =', $sql);
// WP 2.6.1 => 2.8 upgrade, removes a PostgreSQL error but there are some remaining
$sql = str_replace( "post_date = '0000-00-00 00:00:00'", "post_date IS NULL", $sql);
// This will avoid modifications to anything following ' SET '
list($sql,$end) = explode( ' SET ', $sql, 2);
$end = ' SET '.$end;