On 13-10-14 15:04, Michal Čihař wrote:
> It's rather there are missing quotes around database name in
> dbc_mysql_createdb.

You are talking about this line?
_dbc_nodb="yes" dbc_mysql_exec_command "CREATE DATABASE
$dbc_dbname${extrasql:-}"

Should it be the following:
_dbc_nodb="yes" dbc_mysql_exec_command "CREATE DATABASE
`$dbc_dbname${extrasql:-}`"

I have prepared a delayed NMU for dbconfig-common already. If we verify
that this is indeed the cause for this bug, see below, I will happily
take it along.

mysql> create database xx-yy ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near '-yy' at line 1
mysql> create database `xx-yy` ;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database
'xx-yy'

Agree to add the backticks?

Paul


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to