@@ -603,17 +603,17 @@ |
||
| 603 | 603 | return null; |
| 604 | 604 | } |
| 605 | 605 | switch ($driver) { |
| 606 | - case 'mysql': |
|
| 607 | - case 'pgsql': |
|
| 608 | - $port = ''; |
|
| 609 | - if (! empty($config['port'])) { |
|
| 610 | - $port = 'port=' . $config['port'] . ';'; |
|
| 611 | - } |
|
| 612 | - $dsn = $driver . ':host=' . $config['hostname'] . ';' . $port . 'dbname=' . $config['database']; |
|
| 613 | - break; |
|
| 614 | - case 'sqlite': |
|
| 615 | - $dsn = 'sqlite:' . $config['database']; |
|
| 616 | - break; |
|
| 606 | + case 'mysql': |
|
| 607 | + case 'pgsql': |
|
| 608 | + $port = ''; |
|
| 609 | + if (! empty($config['port'])) { |
|
| 610 | + $port = 'port=' . $config['port'] . ';'; |
|
| 611 | + } |
|
| 612 | + $dsn = $driver . ':host=' . $config['hostname'] . ';' . $port . 'dbname=' . $config['database']; |
|
| 613 | + break; |
|
| 614 | + case 'sqlite': |
|
| 615 | + $dsn = 'sqlite:' . $config['database']; |
|
| 616 | + break; |
|
| 617 | 617 | case 'oracle': |
| 618 | 618 | $port = ''; |
| 619 | 619 | if (! empty($config['port'])) { |