Hotfix to avoid "MySQL out of sync" errors.
This commit is contained in:
@@ -12,7 +12,11 @@ $Source$
|
|||||||
|
|
||||||
2004-04-18 Alexander M. Turek <me@derrabus.de>
|
2004-04-18 Alexander M. Turek <me@derrabus.de>
|
||||||
* lang/german-*.inc.php: Updates.
|
* lang/german-*.inc.php: Updates.
|
||||||
* server_privileges.php: $url_query was not visible in function scope.
|
* server_privileges.php:
|
||||||
|
- $url_query was not visible in function scope;
|
||||||
|
- Hotfix to avoid "MySQL out of sync" errors.
|
||||||
|
* libraries/dbi/*.dbi.lib.php: Allow the $link argument of
|
||||||
|
PMA_DBI_affected_rows() to be left out.
|
||||||
|
|
||||||
2004-04-17 Marc Delisle <lem9@users.sourceforge.net>
|
2004-04-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/dbi/mysql.dbi.lib.php: was still using PMA_mysql_field_flags
|
* libraries/dbi/mysql.dbi.lib.php: was still using PMA_mysql_field_flags
|
||||||
|
@@ -1063,8 +1063,8 @@ if (empty($adduser) && empty($checkprivs)) {
|
|||||||
} else {
|
} else {
|
||||||
$sql_query = 'SELECT `Table_name`, `Table_priv`, IF(`Column_priv` = "", 0, 1) AS "Column_priv" FROM `tables_priv` WHERE `Host` = "' . $hostname . '" AND `User` = "' . PMA_sqlAddslashes($username) . '" AND `Db` = "' . $dbname . '" ORDER BY `Table_name` ASC;';
|
$sql_query = 'SELECT `Table_name`, `Table_priv`, IF(`Column_priv` = "", 0, 1) AS "Column_priv" FROM `tables_priv` WHERE `Host` = "' . $hostname . '" AND `User` = "' . PMA_sqlAddslashes($username) . '" AND `Db` = "' . $dbname . '" ORDER BY `Table_name` ASC;';
|
||||||
}
|
}
|
||||||
$res = PMA_DBI_query($sql_query);
|
$res = PMA_DBI_query($sql_query, NULL, PMA_DBI_QUERY_STORE);
|
||||||
if (PMA_DBI_affected_rows($userlink) == 0) {
|
if (PMA_DBI_affected_rows() == 0) {
|
||||||
echo ' <tr>' . "\n"
|
echo ' <tr>' . "\n"
|
||||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="6"><center><i>' . $strNone . '</i></center></td>' . "\n"
|
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="6"><center><i>' . $strNone . '</i></center></td>' . "\n"
|
||||||
. ' </tr>' . "\n";
|
. ' </tr>' . "\n";
|
||||||
|
Reference in New Issue
Block a user