Illegal mix of collations.
There's more where this came from... Will do the rest tomorrow.
This commit is contained in:
@@ -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
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user