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:
authorMichal Čihař <michal@cihar.com>2017-01-23 16:03:41 +0300
committerMichal Čihař <michal@cihar.com>2017-01-23 16:07:29 +0300
commit27fb0b58af920a017a12b5fa89c6e90195b58504 (patch)
treeb7e16567a38ac0dd9960a8b6d4aa6da4bca6cbdd /tbl_export.php
parentd6adb187b2d4be3004f8c38c87ac270e25aa979f (diff)
parente4bf53690679332c23d0ff2b4865ad844d60d996 (diff)
Merge branch 'QA_4_6'
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tbl_export.php')
-rw-r--r--tbl_export.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tbl_export.php b/tbl_export.php
index f8eff7cdf7..53f7fd5b8f 100644
--- a/tbl_export.php
+++ b/tbl_export.php
@@ -47,10 +47,10 @@ $export_page_title = __('View dump (schema) of table');
// generate WHERE clause (if we are asked to export specific rows)
if (! empty($sql_query)) {
- $parser = new SqlParser\Parser($sql_query);
+ $parser = new PhpMyAdmin\SqlParser\Parser($sql_query);
if ((!empty($parser->statements[0]))
- && ($parser->statements[0] instanceof SqlParser\Statements\SelectStatement)
+ && ($parser->statements[0] instanceof PhpMyAdmin\SqlParser\Statements\SelectStatement)
) {
// Finding aliases and removing them, but we keep track of them to be
@@ -72,7 +72,7 @@ if (! empty($sql_query)) {
) {
$replaces = array(
array(
- 'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build(
+ 'FROM', 'FROM ' . PhpMyAdmin\SqlParser\Components\ExpressionArray::build(
$parser->statements[0]->from
),
),
@@ -90,33 +90,33 @@ if (! empty($sql_query)) {
$replaces[] = array('LIMIT', '');
// Replacing the clauses.
- $sql_query = SqlParser\Utils\Query::replaceClauses(
+ $sql_query = PhpMyAdmin\SqlParser\Utils\Query::replaceClauses(
$parser->statements[0],
$parser->list,
$replaces
);
// Removing the aliases by finding the alias followed by a dot.
- $tokens = SqlParser\Lexer::getTokens($sql_query);
+ $tokens = PhpMyAdmin\SqlParser\Lexer::getTokens($sql_query);
foreach ($aliases as $alias => $table) {
- $tokens = SqlParser\Utils\Tokens::replaceTokens(
+ $tokens = PhpMyAdmin\SqlParser\Utils\Tokens::replaceTokens(
$tokens,
array(
array(
'value_str' => $alias,
),
array(
- 'type' => SqlParser\Token::TYPE_OPERATOR,
+ 'type' => PhpMyAdmin\SqlParser\Token::TYPE_OPERATOR,
'value_str' => '.',
)
),
array(
- new SqlParser\Token($table),
- new SqlParser\Token('.', SqlParser\Token::TYPE_OPERATOR)
+ new PhpMyAdmin\SqlParser\Token($table),
+ new PhpMyAdmin\SqlParser\Token('.',PhpMyAdmin\SqlParser\Token::TYPE_OPERATOR)
)
);
}
- $sql_query = SqlParser\TokensList::build($tokens);
+ $sql_query = PhpMyAdmin\SqlParser\TokensList::build($tokens);
}
echo PMA\libraries\Util::getMessage(PMA\libraries\Message::success());