From e3fb4142fc6c75ec2fb1ee63e2ec64e115aa2d7f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 22 Feb 2016 13:31:44 +0000 Subject: [PATCH] need to cast to string, as ADOdb 5.20 would return NULL instead of '' for NULL, causing us to write that into NOT NULL columns --- api/src/Db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Db.php b/api/src/Db.php index 8dd3c80817..11963a7e57 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -1418,7 +1418,8 @@ class Db // for boolean types, causing it to return "true" or "false" and not a quoted string like "'1'"! if (is_bool($value)) $value = (string)$value; - return $this->Link_ID->qstr($value); + // need to cast to string, as ADOdb 5.20 would return NULL instead of '' for NULL, causing us to write that into NOT NULL columns + return $this->Link_ID->qstr((string)$value); } /**