mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
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:
parent
848c7d71d2
commit
e3fb4142fc
@ -1418,7 +1418,8 @@ class Db
|
|||||||
// for boolean types, causing it to return "true" or "false" and not a quoted string like "'1'"!
|
// for boolean types, causing it to return "true" or "false" and not a quoted string like "'1'"!
|
||||||
if (is_bool($value)) $value = (string)$value;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user