diff options
author | Marc Delisle <marc@infomarc.info> | 2015-10-22 19:07:45 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2015-10-22 19:07:45 +0300 |
commit | faaec8e9f404d69735c08443d6dec5078cce3014 (patch) | |
tree | 3fa63fbe0c0857bd0ec03db02a34d8d79d454b78 /db_qbe.php | |
parent | 52de5b182ec83ae59ea971d1fd0888b842533c26 (diff) |
Refactor high-level parser calling into a function
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'db_qbe.php')
-rw-r--r-- | db_qbe.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/db_qbe.php b/db_qbe.php index c96b750524..5a74cc5176 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -82,7 +82,14 @@ if (isset($_REQUEST['submit_sql']) && ! empty($sql_query)) { $goto = 'db_sql.php'; // Parse and analyze the query - include_once 'libraries/parse_analyze.inc.php'; + include_once 'libraries/parse_analyze.lib.php'; + list( + $analyzed_sql_results, + $db, + $table + ) = PMA_parseAnalyze($sql_query, $db); + // @todo: possibly refactor + extract($analyzed_sql_results); PMA_executeQueryAndSendQueryResponse( $analyzed_sql_results, // analyzed_sql_results |