Fix another problem with boolean values in SQL queries

refs #8100
This commit is contained in:
Gunnar Beutner 2014-12-16 21:43:03 +01:00
parent aa795c1b81
commit 5dd0bbfe31
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;