Kaydet (Commit) 6940532b authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

Revert "fdo#68657 bool->string conversion to 1/0, not "true"/"false"

This reverts commit b89fb0d0.

It was intended for stble branch only; in master, we let the
incompatible change go through, but we have introduced a
work-around to get the old behaviour again.
üst 5dde691e
...@@ -1024,12 +1024,7 @@ OUString ORowSetValue::getString( ) const ...@@ -1024,12 +1024,7 @@ OUString ORowSetValue::getString( ) const
aRet = OUString::number(static_cast<bool>(*this)); aRet = OUString::number(static_cast<bool>(*this));
break; break;
case DataType::BOOLEAN: case DataType::BOOLEAN:
// This would be the natural choice, aRet = OUString::boolean(static_cast<bool>(*this));
// but historically it was converted to "0" or "1".
// For backwards compatibility, continue doing that.
// aRet = OUString::boolean(static_cast<bool>(*this));
BOOST_STATIC_ASSERT((boost::is_same< sal_Bool, sal_uInt8 >::value));
aRet = OUString::number(static_cast<sal_Bool>(*this));
break; break;
case DataType::TINYINT: case DataType::TINYINT:
case DataType::SMALLINT: case DataType::SMALLINT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment