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_datadict.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_datadict.php')
-rw-r--r--db_datadict.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/db_datadict.php b/db_datadict.php
index 538bccd427..f580e21e5a 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -76,7 +76,7 @@ foreach($tables as $table) {
*/
PMA_DBI_select_db($db);
- $result = PMA_DBI_query(PMA_DBI_get_table_indexes_sql($db, $table));
+ $indexes = PMA_DBI_get_table_indexes($db, $table);
$primary = '';
$indexes = array();
$lastIndex = '';
@@ -84,7 +84,7 @@ foreach($tables as $table) {
$indexes_data = array();
$pk_array = array(); // will be use to emphasis prim. keys in the table
// view
- while ($row = PMA_DBI_fetch_assoc($result)) {
+ foreach ($indexes as $row) {
// Backups the list of primary keys
if ($row['Key_name'] == 'PRIMARY') {
$primary .= $row['Column_name'] . ', ';
@@ -111,10 +111,6 @@ foreach($tables as $table) {
}
} // end while
- if ($result) {
- PMA_DBI_free_result($result);
- }
-
/**
* Gets columns properties