From cf7d83933ae4177aa4c7bac9e4970bcb5b75c5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 15 Oct 2012 11:56:08 +0200 Subject: [PATCH] I assume PMA_DBI_getError should be used here --- tbl_addfield.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);