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:
1 parent
24a2e5ea7c
commit
5a8881f5ea
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user