Skip to content

Commit 687780a

Browse files
tsiaavbdr
authored andcommitted
use default connection when not specified (ThingEngineer#680)
1 parent 8b58668 commit 687780a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function __construct($host = null, $username = null, $password = null, $d
269269
* @throws Exception
270270
* @return void
271271
*/
272-
public function connect($connectionName)
272+
public function connect($connectionName = 'default')
273273
{
274274
if(!isset($this->connectionsSettings[$connectionName]))
275275
throw new Exception('Connection profile not set');

0 commit comments

Comments
 (0)