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-08-24 00:14:15 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-08-24 00:14:15 +0400
commit57bea0630acc3d36f7f771a96fb84aebbea1ab3d (patch)
tree09777f4a0253496d4aad8f9cc8518e5ea8a2dffc /db_qbe.php
parenta31b30ba57c2351b44a9adb5289fea5ca13750b2 (diff)
Use PMA_DBI_get_table_indexes_sql() only when really needed, in all other cases use PMA_DBI_get_table_indexes()
Diffstat (limited to 'db_qbe.php')
-rw-r--r--db_qbe.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/db_qbe.php b/db_qbe.php
index 2afdc41f08..66d670b903 100644
--- a/db_qbe.php
+++ b/db_qbe.php
@@ -755,8 +755,8 @@ if (isset($Field) && count($Field) > 0) {
PMA_DBI_select_db($db);
foreach ($tab_all as $tab) {
- $ind_rs = PMA_DBI_query(PMA_DBI_get_table_indexes_sql($db, $tab));
- while ($ind = PMA_DBI_fetch_assoc($ind_rs)) {
+ $indexes = PMA_DBI_get_table_indexes($db, $tab);
+ foreach ($indexes as $ind) {
$col1 = $tab . '.' . $ind['Column_name'];
if (isset($col_all[$col1])) {
if ($ind['Non_unique'] == 0) {