Fixed issue when no dbname provided in the DSN
This commit is contained in:
parent
26069a0d71
commit
c0221a604e
3 changed files with 18 additions and 3 deletions
|
|
@ -388,7 +388,12 @@ EOT;
|
|||
{
|
||||
preg_match('#dbname=([a-zA-Z0-9\_]+)#', $dsn, $matches);
|
||||
|
||||
return $matches[1];
|
||||
if (isset($matches[1])) {
|
||||
return $matches[1];
|
||||
}
|
||||
|
||||
// e.g. SQLite
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue