formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Tue Dec 13, 2005 3:30 am Post subject: Error in Column Sorting with TableHelpers::loadQuery() |
|
|
While using column sorting with TableHelpers::loadQuery(), you may encounter an error like:
| Code: |
ERROR: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax
|
to fix this, open /FORMfields/tableHelpers.php and replace the preg_match call in loadQuery():
| Code: |
preg_match("/(.*?)( *(LIMIT|PROCEDURE|FOR UPDATE|LOCK IN SHARE MODE) .*?)?$/i", $sql, $matches);
|
with:
| Code: |
preg_match("/^(.*?)( *(LIMIT|PROCEDURE|FOR UPDATE|LOCK IN SHARE MODE) .*?)?$/i", $sql, $matches);
|
|
|