(Drizzle) Listing/change table structure small fix

This commit is contained in:
Azhari Harahap
2011-04-10 07:02:06 +07:00
committed by Michal Čihař
parent 3c8b3af512
commit 5afcef00e6
2 changed files with 6 additions and 3 deletions

View File

@@ -170,7 +170,9 @@ if ($abort == false) {
*/
for ($i = 0; $i < $selected_cnt; $i++) {
$_REQUEST['field'] = PMA_sqlAddslashes($selected[$i], true);
$result = PMA_DBI_query('SHOW FULL COLUMNS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ' LIKE \'' . $_REQUEST['field'] . '\';');
$result = PMA_DRIZZLE
? PMA_DBI_query('SHOW COLUMNS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ' WHERE Field = \'' . $_REQUEST['field'] . '\';')
: PMA_DBI_query('SHOW FULL COLUMNS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ' LIKE \'' . $_REQUEST['field'] . '\';');
$fields_meta[] = PMA_DBI_fetch_assoc($result);
PMA_DBI_free_result($result);
}