mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
casting boolean explicitly to string, as ADODB_postgres64::qstr() has an unwanted special handling for boolean types, causing eg. query in CalDAV for resources throw an invalid SQL exception under PostgreSQL
This commit is contained in:
parent
4f1d0f9ff0
commit
f832b85d76
@ -1431,6 +1431,10 @@ class egw_db
|
||||
{
|
||||
$value = substr($value,0,$length);
|
||||
}
|
||||
// casting boolean explicitly to string, as ADODB_postgres64::qstr() has an unwanted special handling
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user