bug #2004915 [bookmarks] Saved queries greater than 1000 chars not displayed

This commit is contained in:
Marc Delisle
2008-08-01 20:02:21 +00:00
parent 9ff701560f
commit 506d290408
2 changed files with 5 additions and 1 deletions

View File

@@ -73,6 +73,8 @@ danbarry
2.11.9.0 (not yet released)
- bug #2031221 [auth] Links to version number on login screen
- bug #2032707 [core] PMA does not start if ini_set() is disabled
- bug #2004915 [bookmarks] Saved queries greater than 1000 chars not
displayed, thanks to Maik Wiege - mswiege
2.11.8.0 (2008-07-28)
- patch #1987593 [interface] Table list pagination in navi,

View File

@@ -177,7 +177,9 @@ function PMA_importRunQuery($sql = '', $full = '', $controluser = false)
}
}
// check length of query unless we decided to pass it to sql.php
if (!$go_sql) {
// (if $run_query is false, we are just displaying so show
// the complete query in the textarea)
if (! $go_sql && $run_query) {
if ($cfg['VerboseMultiSubmit'] && ! empty($sql_query)) {
if (strlen($sql_query) > 50000 || $executed_queries > 50 || $max_sql_len > 1000) {
$sql_query = '';