Fixed db connection for normal databases

This commit is contained in:
Timothy Warren 2012-03-15 13:12:34 -04:00
parent 0c2997789d
commit a9995ecd6c

View File

@ -82,7 +82,7 @@ class Query_Builder {
switch($dbtype)
{
default:
$this->db = new $dbtype("host={$params->host};port={$params->port};", $params->user, $params->pass);
$this->db = new $dbtype("host={$params->host};port={$params->port};dbname={$this->database}", $params->user, $params->pass);
break;
case "sqlite":