Fix a typo in a regex pattern

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225355 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-04-04 22:28:58 +00:00
parent 24a2e5ea7c
commit 5a8881f5ea

View File

@@ -121,7 +121,7 @@
$sql = $GLOBALS['pg4wp_numrows'];
}
// Handle COUNT(*)...ORDER BY...
$sql = preg_replace( '/COUNT(.+)ORDER BY.+', 'COUNT$1', $sql);
$sql = preg_replace( '/COUNT(.+)ORDER BY.+/', 'COUNT$1', $sql);
$pattern = '/LIMIT[ ]+(\d+),[ ]*(\d+)/';
$sql = preg_replace($pattern, 'LIMIT $2 OFFSET $1', $sql);