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:
authorDan Ungureanu <udan1107@gmail.com>2015-06-22 22:36:13 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-10 23:18:13 +0300
commit11adecc1d80f32234f48791fe121a3a59485c28e (patch)
tree6b06059cbfa08ab2dd7781dc49f884e5b7713be4 /tbl_structure.php
parent6c3ccb2d5643663ff4d1104b18b73e4b856119c3 (diff)
Use new parser for table's structure.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
Diffstat (limited to 'tbl_structure.php')
-rw-r--r--tbl_structure.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tbl_structure.php b/tbl_structure.php
index 9d5178c048..094356c355 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -199,7 +199,8 @@ $show_create_table = $GLOBALS['dbi']->fetchValue(
. PMA_Util::backquote($table),
0, 1
);
-$analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
+$parser = new SqlParser\Parser($show_create_table);
+$create_table_fields = SqlParser\Utils\Table::getFields($parser->statements[0]);
/**
* prepare table infos