bug #3077454, don't apply inner_sql span to query_only mode, this breaks copying databases and rowcount of queries
This commit is contained in:
@@ -2119,10 +2119,12 @@ if (! defined('PMA_MINIMUM_COMMON')) {
|
|||||||
$docu = TRUE;
|
$docu = TRUE;
|
||||||
break;
|
break;
|
||||||
} // end switch
|
} // end switch
|
||||||
// inner_sql is a span that exists for all cases
|
// inner_sql is a span that exists for all cases, except query_only
|
||||||
// of $cfg['SQP']['fmtType'] to make possible a replacement
|
// of $cfg['SQP']['fmtType'] to make possible a replacement
|
||||||
// for inline editing
|
// for inline editing
|
||||||
|
if ($mode!='query_only') {
|
||||||
$str .= '<span class="inner_sql">';
|
$str .= '<span class="inner_sql">';
|
||||||
|
}
|
||||||
$close_docu_link = false;
|
$close_docu_link = false;
|
||||||
$indent = 0;
|
$indent = 0;
|
||||||
$bracketlevel = 0;
|
$bracketlevel = 0;
|
||||||
@@ -2617,8 +2619,10 @@ if (! defined('PMA_MINIMUM_COMMON')) {
|
|||||||
$str .= '</a>';
|
$str .= '</a>';
|
||||||
$close_docu_link = false;
|
$close_docu_link = false;
|
||||||
}
|
}
|
||||||
|
if ($mode!='query_only') {
|
||||||
// close inner_sql span
|
// close inner_sql span
|
||||||
$str .= '</span>';
|
$str .= '</span>';
|
||||||
|
}
|
||||||
if ($mode=='color') {
|
if ($mode=='color') {
|
||||||
// close syntax span
|
// close syntax span
|
||||||
$str .= '</span>';
|
$str .= '</span>';
|
||||||
|
Reference in New Issue
Block a user