1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix broken column list in index creation

Regression from "Remove deprecated function PMA_DBI_get_fields", fe53e42d1d
This commit is contained in:
Piotr Przybylski
2011-05-24 18:38:15 +02:00
parent 84006bfeb2
commit 4e2cd5e998

View File

@@ -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);