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:
authorPiotr Przybylski <piotrprz@gmail.com>2011-06-18 02:15:43 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-06-18 02:15:43 +0400
commit2e01d01b3227ffed9b5329b4320440e35ece04c7 (patch)
tree628c470ab1d8c8e16dbd25c1be9efc9ae9d3788c /db_datadict.php
parent2444ad6d20ea70f6ea03d0996ff5d3bfb204e13d (diff)
Change all calls of SHOW KEYS/INDEX that use MySQL-specific fields to use query generation function
Diffstat (limited to 'db_datadict.php')
-rw-r--r--db_datadict.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/db_datadict.php b/db_datadict.php
index ce61f3518b..37a36481f8 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -76,7 +76,7 @@ while ($row = PMA_DBI_fetch_row($rowset)) {
*/
PMA_DBI_select_db($db);
- $result = PMA_DBI_query('SHOW KEYS FROM ' . PMA_backquote($table) . ';');
+ $result = PMA_DBI_query(PMA_DBI_get_table_indexes_sql($db, $table));
$primary = '';
$indexes = array();
$lastIndex = '';
@@ -96,7 +96,7 @@ while ($row = PMA_DBI_fetch_row($rowset)) {
$lastIndex = $row['Key_name'];
}
$indexes_info[$row['Key_name']]['Sequences'][] = $row['Seq_in_index'];
- $indexes_info[$row['Key_name']]['Non_unique'] = $row['Non_unique'];
+ $indexes_info[$row['Key_name']]['Non_unique'] = PMA_DRIZZLE ? $row['Unique'] : $row['Non_unique'];
if (isset($row['Cardinality'])) {
$indexes_info[$row['Key_name']]['Cardinality'] = $row['Cardinality'];
}