bug #1037004 UPDATE statement not showing
This commit is contained in:
@@ -7,7 +7,7 @@ $Source$
|
|||||||
|
|
||||||
2004-09-29 Marc Delisle <lem9@users.sourceforge.net>
|
2004-09-29 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* sql.php, libraries/common.lib.php: bug #1036678, incorrect appending
|
* sql.php, libraries/common.lib.php: bug #1036678, incorrect appending
|
||||||
of LIMIT to queries
|
of LIMIT to queries, and bug #1037004, UPDATE statement not showing
|
||||||
|
|
||||||
2004-09-29 Michal Čihař <michal@cihar.com>
|
2004-09-29 Michal Čihař <michal@cihar.com>
|
||||||
* tbl_addfield.php, tbl_create.php, tbl_properties.inc.php, lang/*: Better
|
* tbl_addfield.php, tbl_create.php, tbl_properties.inc.php, lang/*: Better
|
||||||
|
@@ -1583,12 +1583,17 @@ if (typeof(document.getElementById) != 'undefined'
|
|||||||
// Here we append the LIMIT added for navigation, to
|
// Here we append the LIMIT added for navigation, to
|
||||||
// enable its display. Adding it higher in the code
|
// enable its display. Adding it higher in the code
|
||||||
// to $local_query would create a problem when
|
// to $local_query would create a problem when
|
||||||
// using the Refresh or Edit links
|
// using the Refresh or Edit links.
|
||||||
|
|
||||||
|
// Only append it on SELECTs.
|
||||||
|
|
||||||
// FIXME: what would be the best to do when someone
|
// FIXME: what would be the best to do when someone
|
||||||
// hits Refresh: use the current LIMITs ?
|
// hits Refresh: use the current LIMITs ?
|
||||||
|
|
||||||
if (isset($GLOBALS['sql_limit_to_append'])) {
|
// TODO: use the parser instead of preg_match()
|
||||||
|
|
||||||
|
if (preg_match('@^SELECT[[:space:]]+@i', $query_base)
|
||||||
|
&& isset($GLOBALS['sql_limit_to_append'])) {
|
||||||
$query_base .= $GLOBALS['sql_limit_to_append'];
|
$query_base .= $GLOBALS['sql_limit_to_append'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user