mirror of https://github.com/Icinga/icinga2.git
parent
aa795c1b81
commit
5dd0bbfe31
|
@ -573,7 +573,7 @@ bool IdoMysqlConnection::FieldToEscapedString(const String& key, const Value& va
|
|||
Value fvalue;
|
||||
|
||||
if (rawvalue.IsBoolean())
|
||||
fvalue = Convert::ToLong(rawvalue);
|
||||
fvalue = rawvalue.ToBool() ? 1 : 0;
|
||||
else
|
||||
fvalue = rawvalue;
|
||||
|
||||
|
|
|
@ -567,7 +567,7 @@ bool IdoPgsqlConnection::FieldToEscapedString(const String& key, const Value& va
|
|||
Value fvalue;
|
||||
|
||||
if (rawvalue.IsBoolean())
|
||||
fvalue = Convert::ToLong(rawvalue);
|
||||
fvalue = rawvalue.ToBool() ? 1 : 0;
|
||||
else
|
||||
fvalue = rawvalue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue