mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
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…
x
Reference in New Issue
Block a user