From 4e2cd5e998340f2f7262bc890d64e51c85970937 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Tue, 24 May 2011 18:38:15 +0200 Subject: [PATCH] Fix broken column list in index creation Regression from "Remove deprecated function PMA_DBI_get_fields", fe53e42d1dfff53967ef5c3d6930b1bd9ac4b428 --- tbl_indexes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbl_indexes.php b/tbl_indexes.php index 5fcfee95b3..59ea6b0049 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -15,7 +15,7 @@ require_once './libraries/tbl_common.php'; // Get fields and stores their name/type $fields = array(); -foreach (PMA_DBI_get_columns($db, $table) as $row) { +foreach (PMA_DBI_get_columns_full($db, $table) as $row) { if (preg_match('@^(set|enum)\((.+)\)$@i', $row['Type'], $tmp)) { $tmp[2] = substr(preg_replace('@([^,])\'\'@', '\\1\\\'', ',' . $tmp[2]), 1);