mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-22 14:47:07 -04:00
parent
aa795c1b81
commit
5dd0bbfe31
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue