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

This reverts commit b89fb0d03e.

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.
This commit is contained in:
Lionel Elie Mamane
2013-10-20 17:36:45 +02:00
parent 5dde691e3e
commit 6940532b81

View File

@@ -1024,12 +1024,7 @@ OUString ORowSetValue::getString( ) const
aRet = OUString::number(static_cast<bool>(*this));
break;
case DataType::BOOLEAN:
// This would be the natural choice,
// 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));
aRet = OUString::boolean(static_cast<bool>(*this));
break;
case DataType::TINYINT:
case DataType::SMALLINT: