diff --git a/tbl_addfield.php b/tbl_addfield.php index 19d30e942ac1..2788d01afa63 100644 --- a/tbl_addfield.php +++ b/tbl_addfield.php @@ -156,7 +156,7 @@ // To allow replication, we first select the db to use and then run queries // on this db. - PMA_DBI_select_db($db) or PMA_Util::mysqlDie(PMA_getError(), 'USE ' . PMA_Util::backquote($db), '', $err_url); + PMA_DBI_select_db($db) or PMA_Util::mysqlDie(PMA_DBI_getError(), 'USE ' . PMA_Util::backquote($db), '', $err_url); $sql_query = 'ALTER TABLE ' . PMA_Util::backquote($table) . ' ' . implode(', ', $definitions) . ';'; $result = PMA_DBI_try_query($sql_query);