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

This commit is contained in:
Ralf Becker 2016-02-22 13:31:44 +00:00
parent 848c7d71d2
commit e3fb4142fc

View File

@ -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);
}
/**