summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-10-20 17:36:45 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-10-20 19:28:19 +0200
commit6940532b814669dcb9e4553c5678a9e4670cc6e7 (patch)
treea5e4470dcabf3f69549d6cb959e02a5215fa9a00 /connectivity
parentan ORowSetValue constructed from a boolean is a boolean (diff)
downloadcore-6940532b814669dcb9e4553c5678a9e4670cc6e7.tar.gz
core-6940532b814669dcb9e4553c5678a9e4670cc6e7.zip
Revert "fdo#68657 bool->string conversion to 1/0, not "true"/"false"
This reverts commit b89fb0d03ead22f023f367c9a9d046d3d41ba1cf. 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.
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/FValue.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index 02ba27f5b195..25fa780f310d 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -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: