diff options
author | Michal Čihař <michal@cihar.com> | 2017-01-23 15:56:35 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-01-23 15:56:35 +0300 |
commit | e4bf53690679332c23d0ff2b4865ad844d60d996 (patch) | |
tree | cf97ecc183f048c82500c71bfd2ffd856c366182 /export.php | |
parent | c654a50d87a725f9dabbb97326a2b7855b8254ec (diff) |
Update to SQL Parser 4.0.1
It now follows PSR-4 and uses PhpMyAdmin namespace prefix.
See https://github.com/phpmyadmin/sql-parser/issues/126
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'export.php')
-rw-r--r-- | export.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/export.php b/export.php index 785972b7dd..f22932165b 100644 --- a/export.php +++ b/export.php @@ -280,12 +280,12 @@ if (!defined('TESTSUITE')) { // Merge SQL Query aliases with Export aliases from // export page, Export page aliases are given more // preference over SQL Query aliases. - $parser = new SqlParser\Parser($sql_query); + $parser = new PhpMyAdmin\SqlParser\Parser($sql_query); $aliases = array(); if ((!empty($parser->statements[0])) - && ($parser->statements[0] instanceof SqlParser\Statements\SelectStatement) + && ($parser->statements[0] instanceof PhpMyAdmin\SqlParser\Statements\SelectStatement) ) { - $aliases = SqlParser\Utils\Misc::getAliases($parser->statements[0], $db); + $aliases = PhpMyAdmin\SqlParser\Utils\Misc::getAliases($parser->statements[0], $db); } if (!empty($_REQUEST['aliases'])) { $aliases = PMA_mergeAliases($aliases, $_REQUEST['aliases']); |