fix a 'already exist' error when creating a database containing an hyphen (-)
This commit is contained in:
parent
21dda6eda8
commit
2037ee4841
|
@ -145,7 +145,7 @@ class m_mysql {
|
|||
$lo=addslashes($db->f("login"));
|
||||
$pa=addslashes($db->f("pass"));
|
||||
}
|
||||
if ($db->query("CREATE DATABASE $dbname;")) {
|
||||
if ($db->query("CREATE DATABASE `$dbname`;")) {
|
||||
// Ok, database does not exist, quota is ok and dbname is compliant. Let's proceed
|
||||
$db->query("INSERT INTO db (uid,login,pass,db,bck_mode) VALUES ('$cuid','$lo','$pa','$dbname',0);");
|
||||
// give everything but GRANT on db.*
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
alternc (0.9.10) stable; urgency=low
|
||||
|
||||
* bugfixes:
|
||||
* fix a "already exist" error when creating a database containing an hyphen (-)
|
||||
* #1163: fix sqlbackup script call routine to retain backwards
|
||||
compatibility
|
||||
* fix usage of ISO8859-15 charset (that may NOT be defined in locales...)
|
||||
|
|
Loading…
Reference in New Issue