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:
authorAzhari Harahap <azhari@harahap.us>2011-04-10 04:02:06 +0400
committerMichal Čihař <mcihar@novell.com>2011-04-14 12:25:47 +0400
commit5afcef00e6ccba90a78ecf5944f0295d7e9e2f95 (patch)
tree6e0351a3bcc80a6c6ccaaf06ffcf83017f047b5c /tbl_alter.php
parent3c8b3af5124f9834bdd870c2b4fd22ddc8608586 (diff)
(Drizzle) Listing/change table structure small fix
Diffstat (limited to 'tbl_alter.php')
-rw-r--r--tbl_alter.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tbl_alter.php b/tbl_alter.php
index fa82d7cca5..1c2d7fbd80 100644
--- a/tbl_alter.php
+++ b/tbl_alter.php
@@ -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);
}