bug #1771200 unknown system variable PROFILING
This commit is contained in:
@@ -1273,7 +1273,9 @@ function PMA_showMessage($message, $sql_query = null)
|
|||||||
* @author Marc Delisle
|
* @author Marc Delisle
|
||||||
*/
|
*/
|
||||||
function PMA_profilingCheckbox($sql_query) {
|
function PMA_profilingCheckbox($sql_query) {
|
||||||
if (PMA_MYSQL_INT_VERSION >= 50037) {
|
// 5.0.37 has profiling but for example, 5.1.20 does not
|
||||||
|
// (avoid doing a fetch_value for MySQL before 5.0.37)
|
||||||
|
if (PMA_MYSQL_INT_VERSION >= 50037 && PMA_DBI_fetch_value("SHOW VARIABLES LIKE 'profiling'")) {
|
||||||
echo '<form action="sql.php" method="post" />' . "\n";
|
echo '<form action="sql.php" method="post" />' . "\n";
|
||||||
echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
|
echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
|
||||||
echo '<input type="hidden" name="sql_query" value="' . $sql_query . '" />' . "\n";
|
echo '<input type="hidden" name="sql_query" value="' . $sql_query . '" />' . "\n";
|
||||||
|
Reference in New Issue
Block a user