Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-12 22:51:21 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-12 22:51:21 +0300
commit1354b45b128051c0c54a26f4f21cb7485f958350 (patch)
treead0a29bb6ba6a7aebe61ecc0a74ed2f6b7bf9db1 /sql.php
parent9ecdd9c80ae5c9865e8e79e0802052d6d391e34f (diff)
Refactor parse_analyze function to static method
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql.php b/sql.php
index 7867577f52..c441b7d81c 100644
--- a/sql.php
+++ b/sql.php
@@ -8,6 +8,7 @@
* @package PhpMyAdmin
*/
use PhpMyAdmin\Config\PageSettings;
+use PhpMyAdmin\ParseAnalyze;
use PhpMyAdmin\Response;
use PhpMyAdmin\Sql;
use PhpMyAdmin\Url;
@@ -130,12 +131,11 @@ if (empty($sql_query) && strlen($table) > 0 && strlen($db) > 0) {
/**
* Parse and analyze the query
*/
-require_once 'libraries/parse_analyze.lib.php';
list(
$analyzed_sql_results,
$db,
$table_from_sql
-) = PMA_parseAnalyze($sql_query, $db);
+) = ParseAnalyze::sqlQuery($sql_query, $db);
// @todo: possibly refactor
extract($analyzed_sql_results);