Tag: cws_src680_dba24c User: oj Date: 2007-10-15 12:00:40+0000 Modified: dba/connectivity/source/commontools/FValue.cxx
Log: #i78438# convert string to bool extended File Changes: Directory: /dba/connectivity/source/commontools/ ================================================ File [changed]: FValue.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/FValue.cxx?r1=1.30&r2=1.30.132.1 Delta lines: +21 -4 -------------------- --- FValue.cxx 2006-09-17 01:58:37+0000 1.30 +++ FValue.cxx 2007-10-15 12:00:37+0000 1.30.132.1 @@ -4,9 +4,9 @@ * * $RCSfile: FValue.cxx,v $ * - * $Revision: 1.30 $ + * $Revision: 1.30.132.1 $ * - * last change: $Author: obo $ $Date: 2006/09/17 01:58:37 $ + * last change: $Author: oj $ $Date: 2007/10/15 12:00:37 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1035,9 +1035,26 @@ { case DataType::CHAR: case DataType::VARCHAR: + case DataType::LONGVARCHAR: + { + const ::rtl::OUString sValue(m_aValue.m_pString); + const static ::rtl::OUString s_sTrue(RTL_CONSTASCII_USTRINGPARAM("true")); + const static ::rtl::OUString s_sFalse(RTL_CONSTASCII_USTRINGPARAM("false")); + if ( sValue.equalsIgnoreAsciiCase(s_sTrue) ) + { + bRet = sal_True; + break; + } + else if ( sValue.equalsIgnoreAsciiCase(s_sFalse) ) + { + bRet = sal_False; + break; + } + } + // run through case DataType::DECIMAL: case DataType::NUMERIC: - case DataType::LONGVARCHAR: + bRet = ::rtl::OUString(m_aValue.m_pString).toInt32() != 0; break; case DataType::BIGINT: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
