bug 923227 copying a user with table privileges does not work
This commit is contained in:
@@ -7,6 +7,7 @@ $Source$
|
|||||||
|
|
||||||
2004-03-29 Marc Delisle <lem9@users.sourceforge.net>
|
2004-03-29 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* server_privileges.php: bug 923171, password error when copying a user
|
* server_privileges.php: bug 923171, password error when copying a user
|
||||||
|
* server_privileges.php: bug 923227, copying a user with table privs
|
||||||
|
|
||||||
2004-03-26 Marc Delisle <lem9@users.sourceforge.net>
|
2004-03-26 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* left.php, db_details_structure.php, config.inc.php, Documentation.html,
|
* left.php, db_details_structure.php, config.inc.php, Documentation.html,
|
||||||
|
@@ -657,7 +657,9 @@ if (!empty($change_copy)) {
|
|||||||
PMA_DBI_free_result($res);
|
PMA_DBI_free_result($res);
|
||||||
$res = PMA_DBI_query('SELECT `Db`, `Table_name`, `Table_priv` FROM `mysql`.`tables_priv` WHERE `User` = "' . PMA_sqlAddslashes($old_username) . '" AND `Host` = "' . $old_hostname . '";', $userlink);
|
$res = PMA_DBI_query('SELECT `Db`, `Table_name`, `Table_priv` FROM `mysql`.`tables_priv` WHERE `User` = "' . PMA_sqlAddslashes($old_username) . '" AND `Host` = "' . $old_hostname . '";', $userlink);
|
||||||
while ($row = PMA_DBI_fetch_assoc($res)) {
|
while ($row = PMA_DBI_fetch_assoc($res)) {
|
||||||
$res2 = PMA_DBI_query('SELECT `Column_name`, `Column_priv` FROM `mysql`.`columns_priv` WHERE `User` = "' . PMA_sqlAddslashes($old_username) . '" AND `Host` = "' . $old_hostname . '" AND `Db` = "' . $row['Db'] . '";');
|
|
||||||
|
$res2 = PMA_DBI_query('SELECT `Column_name`, `Column_priv` FROM `mysql`.`columns_priv` WHERE `User` = "' . PMA_sqlAddslashes($old_username) . '" AND `Host` = "' . $old_hostname . '" AND `Db` = "' . $row['Db'] . '" AND `Table_name` = "' . $row['Table_name'] . '";');
|
||||||
|
|
||||||
$tmp_privs1 = PMA_extractPrivInfo($row);
|
$tmp_privs1 = PMA_extractPrivInfo($row);
|
||||||
$tmp_privs2 = array(
|
$tmp_privs2 = array(
|
||||||
'Select' => array(),
|
'Select' => array(),
|
||||||
|
Reference in New Issue
Block a user