Commit 687780a9 authored by tsia's avatar tsia Committed by Alexander Butenko

use default connection when not specified (#680)

parent 8b58668c
......@@ -269,7 +269,7 @@ class MysqliDb
* @throws Exception
* @return void
*/
public function connect($connectionName)
public function connect($connectionName = 'default')
{
if(!isset($this->connectionsSettings[$connectionName]))
throw new Exception('Connection profile not set');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment