Skip to content

Commit 7c23a50

Browse files
committed
FIX connect multiple databases by cloning driver
1 parent c833c16 commit 7c23a50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SQL Builder
22
=======================================
33

4-
![Packagist](https://img.shields.io/packagist/vpre/francerz/sql-builder)]
4+
![Packagist](https://img.shields.io/packagist/vpre/francerz/sql-builder)
55
![Build Status](https://github.com/francerz/php-sql-builder/workflows/PHP%20Unit%20Tests/badge.svg)
66

77
Installation

src/DriverManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function register(string $name, DriverInterface $driver)
2121
public static function getDriver(string $name): ?DriverInterface
2222
{
2323
if (array_key_exists($name, static::$drivers)) {
24-
return static::$drivers[$name];
24+
return clone static::$drivers[$name];
2525
}
2626
return null;
2727
}

0 commit comments

Comments
 (0)