From 84675bc4049150d1e86f029952d5b9d5cebdd96a Mon Sep 17 00:00:00 2001 From: "J. King" Date: Wed, 5 Oct 2016 22:45:49 -0400 Subject: [PATCH] more binding types (all strings in SQLite) --- vendor/JKingWeb/NewsSync/Db/StatementSQLite3.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vendor/JKingWeb/NewsSync/Db/StatementSQLite3.php b/vendor/JKingWeb/NewsSync/Db/StatementSQLite3.php index c08f0a50..2b56ba17 100644 --- a/vendor/JKingWeb/NewsSync/Db/StatementSQLite3.php +++ b/vendor/JKingWeb/NewsSync/Db/StatementSQLite3.php @@ -19,6 +19,11 @@ class StatementSQLite3 implements Statement { case "real": case "numeric": $this->types[] = \SQLITE3_FLOAT; break; + case "date": + case "time": + case "datetime": + case "timestamp": + $this->types[] = \SQLITE3_TEXT; break; case "blob": case "bin": case "binary": @@ -26,7 +31,6 @@ class StatementSQLite3 implements Statement { case "text": case "string": case "str": - $this->types[] = \SQLITE3_TEXT; break; default: $this->types[] = \SQLITE3_TEXT; break; }