Illegal mix of collations.

There's more where this came from... Will do the rest tomorrow.
This commit is contained in:
Alexander M. Turek
2004-04-19 22:10:42 +00:00
parent 4199893379
commit 7281232b88
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ $Source$
* config.inc.php, Documentation.html, libraries/config_import.lib.php:
Updated path to MySQL's searchable online documentation.
* ChangeLog: Recoded to UTF-8.
* server_privileges.php: Illegal mix of collations.
2004-04-19 Marcel Tschopp <ne0x@users.sourceforge.net>
* libraries/export/sql.php, libraries/export/latex.php: Fixed a few

View File

@@ -1061,7 +1061,7 @@ if (empty($adduser) && empty($checkprivs)) {
if (empty($dbname)) {
$sql_query = 'SELECT * FROM `db` WHERE `Host` = "' . $hostname . '" AND `User` = "' . PMA_sqlAddslashes($username) . '" ORDER BY `Db` ASC;';
} 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` = ' . (PMA_MYSQL_INT_VERSION >= 40100 ? '_latin1 ' : '') . ' "", 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, NULL, PMA_DBI_QUERY_STORE);
if (PMA_DBI_affected_rows() == 0) {