Commit ad960050 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

bugfix: allow dashes in database names

parent 877cf4d9
......@@ -113,7 +113,7 @@ sub dbc_hash_to_cmd {
if($driver eq 'sqlite') {
return "rm -f $dbname";
} elsif(!$2) {
$sqlcmd = "$1 $dbname";
$sqlcmd = "$1 \`$dbname\`";
$dbc_hash->{dbname} = '';
}
} elsif($sqlcmd =~ /(CREATE\s+DATABASE\s*?)(?:\s+(\w+))?/i ) {
......@@ -122,7 +122,7 @@ sub dbc_hash_to_cmd {
if($driver eq 'sqlite') {
return "touch $dbname";
} elsif(!$2) {
$sqlcmd = "$1 $dbname";
$sqlcmd = "$1 \`$dbname\`";
$dbc_hash->{dbname} = '';
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment