Fixed issue when no dbname provided in the DSN

This commit is contained in:
William DURAND 2011-12-15 16:32:05 +01:00
commit c0221a604e
3 changed files with 18 additions and 3 deletions

View file

@ -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;
}
/**