Commit da685f1e authored by Matthieu Muffato's avatar Matthieu Muffato

Merge branch 'version/1.9' into version/2.0

* version/1.9:
  Allow the IF NOT EXISTS of CREATE DATABASE
parents 7731a5df 1cffcdc6
......@@ -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