1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 11:22:17 -05:00

Added default statement for db system

This commit is contained in:
tcit 2014-04-23 22:48:33 +02:00
parent feecea2806
commit 8af31ae0f7

View File

@ -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);