$this->type = strtolower(preg_replace('/^([^:]+):.*$/','\1',$this->pdo));
#preg_match_all('/[:;](user|username|password)=([^;]*)/',$this->pdo,$m); bye($m);
- try {
+# NB 12.01.16 try {
$this->conn = new PDO($this->pdo,$this->username,$this->password,$this->options);
if (isset($this->pdo_error)) $this->conn->setAttribute(PDO::ATTR_ERRMODE, $this->pdo_error);
- } catch (PDOException $e) {
-
- err($e->getMessage(), "Db.new()");
- return false;
-
- }
+# NB 12.01.16 } catch (PDOException $e) {
+# NB 12.01.16
+# NB 12.01.16 err($e->getMessage(), "Db.new()");
+# NB 12.01.16 return false;
+# NB 12.01.16
+# NB 12.01.16 }
#if (empty($this->name)) $this->name = preg_replace('/^(?:(?:sqlite:.*(.*?)(\.\w+)?)|(?:.*?dbname=([^;]+).*?))$/','\1',$this->pdo);
# NB 22.12.15 if (empty($this->name) and preg_match('/(?:sqlite:|dbname=)([^;\.]+)/',$this->pdo,$m)) {