bug 582356
This commit is contained in:
parent
78c67eb706
commit
4ec070cb31
@ -18,6 +18,8 @@ $Source$
|
||||
* lang/polish update, thanks to Jakub Wilk
|
||||
* lang/galician update, thanks to Xosé Calvo
|
||||
* lang/romanian update, thanks to Valics Lehel
|
||||
* sql.php3, bug 582356, Propose table structure was not working when
|
||||
$cfg['ShowAll'] was FALSE
|
||||
|
||||
2002-07-18 Steve Alberty <staybyte@users.sourceforge.net>
|
||||
* It is now possible to print stats for more than 2 GB (up to exa byte)
|
||||
|
||||
3
sql.php3
3
sql.php3
@ -297,10 +297,9 @@ else {
|
||||
if (isset($pos)
|
||||
&& (!$cfg['ShowAll'] || $session_max_rows != 'all')
|
||||
&& $is_select
|
||||
&& !($is_count || $is_export || $is_func)
|
||||
&& !($is_count || $is_export || $is_func || $is_analyse)
|
||||
&& eregi('[[:space:]]FROM[[:space:]]', $sql_query)
|
||||
&& !eregi('[[:space:]]LIMIT[[:space:]0-9,]+$', $sql_query)) {
|
||||
|
||||
$sql_limit_to_append = " LIMIT $pos, ".$cfg['MaxRows'];
|
||||
if (eregi('(.*)([[:space:]](PROCEDURE[[:space:]](.*)|FOR[[:space:]]+UPDATE|LOCK[[:space:]]+IN[[:space:]]+SHARE[[:space:]]+MODE))$', $sql_query, $regs)) {
|
||||
$full_sql_query = $regs[1] . $sql_limit_to_append . $regs[2];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user