From a9995ecd6c83906617afa23afc9a3971ed5c038f Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 15 Mar 2012 13:12:34 -0400 Subject: [PATCH] Fixed db connection for normal databases --- query_builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query_builder.php b/query_builder.php index 3bf561f..1953d22 100644 --- a/query_builder.php +++ b/query_builder.php @@ -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":