From ddc10a5647236b773bdb2eead128a8b1eb2eddfb Mon Sep 17 00:00:00 2001 From: "Dmytro P. Zarezenko" Date: Fri, 16 Dec 2016 15:35:40 +0200 Subject: [PATCH] New feature: '|' separator support in the DB fields types string --- framework/db/DBPreparedQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/DBPreparedQuery.php b/framework/db/DBPreparedQuery.php index d6f7665..2b591c9 100644 --- a/framework/db/DBPreparedQuery.php +++ b/framework/db/DBPreparedQuery.php @@ -46,7 +46,7 @@ class DBPreparedQuery extends DBQuery { */ public function __construct($query = "", $types = "", $params = []) { $this->query = $query; - $this->types = $types; + $this->types = str_replace(["|"], "", $types); $this->params = $params; if (!empty($this->query)) {