Commit d8d687ca authored by Matthieu Muffato's avatar Matthieu Muffato

Merge branch 'version/2.0' into version/2.1

* version/2.0:
  Allow the IF NOT EXISTS of CREATE DATABASE
parents 6ed5b530 da685f1e
......@@ -121,7 +121,7 @@ sub dbc_hash_to_cmd {
}
$dbc_hash->{dbname} = '';
}
} elsif($sqlcmd =~ /(CREATE\s+DATABASE\s*?)(?:\s+(\w+))?/i ) {
} elsif($sqlcmd =~ /(CREATE\s+DATABASE(?:\s+IF\s+NOT\s+EXISTS)?\s*?)(?:\s+(\w+))?/i ) {
my $dbname = $2 || $dbc_hash->{dbname};
if($driver eq 'sqlite') {
......
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