mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
Added default statement for db system
This commit is contained in:
parent
feecea2806
commit
8af31ae0f7
@ -33,6 +33,8 @@ class Database {
|
|||||||
$db_path = 'pgsql:host=' . STORAGE_SERVER . ';dbname=' . STORAGE_DB;
|
$db_path = 'pgsql:host=' . STORAGE_SERVER . ';dbname=' . STORAGE_DB;
|
||||||
$this->handle = new PDO($db_path, STORAGE_USER, STORAGE_PASSWORD);
|
$this->handle = new PDO($db_path, STORAGE_USER, STORAGE_PASSWORD);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
die(STORAGE . ' is not a recognised database system !');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
Loading…
Reference in New Issue
Block a user