diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-09-12 22:51:21 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-09-12 22:51:21 +0300 |
commit | 1354b45b128051c0c54a26f4f21cb7485f958350 (patch) | |
tree | ad0a29bb6ba6a7aebe61ecc0a74ed2f6b7bf9db1 /sql.php | |
parent | 9ecdd9c80ae5c9865e8e79e0802052d6d391e34f (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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |