diff --git a/src/EasyDB.php b/src/EasyDB.php
index <HASH>..<HASH> 100644
--- a/src/EasyDB.php
+++ b/src/EasyDB.php
@@ -43,6 +43,11 @@ class EasyDB
             \PDO::ATTR_ERRMODE,
             \PDO::ERRMODE_EXCEPTION
         );
+
+        if (empty($dbEngine)) {
+            $dbEngine = $this->pdo->getAttribute(\PDO::ATTR_DRIVER_NAME);
+        }
+
         $this->dbEngine = $dbEngine;
     }
Get engine from connection when none provided

The currently used database engine can be fetched from PDO if it is not
set at runtime.

Fixes #<I>