summaryrefslogtreecommitdiff
path: root/forms/source/runtime
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-08-30 03:58:55 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-08-30 05:23:06 +0200
commit3655f2546500d52f2e555fb8d4964a26cf0f341e (patch)
tree8515464a86a69e9fe4aea5d99f04fa01f4d77c32 /forms/source/runtime
parent92f877ab098d2003581b73a5f0ec0f0038ef84cd (diff)
fdo#48807 autofilter should not use LIKE operator
This demonstrates a confusion between *values* and *patterns* Change-Id: I207aa53950166e915bbad22b022c88d07ee6300d
Diffstat (limited to 'forms/source/runtime')
-rw-r--r--forms/source/runtime/formoperations.cxx18
1 files changed, 1 insertions, 17 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index 3c29f88bc21e..457dcfa77999 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -1685,23 +1685,7 @@ namespace frm
void FormOperations::impl_appendFilterByColumn_throw( const void* _pActionParam ) const
{
const param_appendFilterByColumn* pParam = static_cast< const param_appendFilterByColumn* >( _pActionParam );
- sal_Int32 nOp = SQLFilterOperator::EQUAL;
- if ( pParam->xField.is() )
- {
- sal_Int32 nType = 0;
- pParam->xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nType;
- switch(nType)
- {
- case DataType::VARCHAR:
- case DataType::CHAR:
- case DataType::LONGVARCHAR:
- nOp = SQLFilterOperator::LIKE;
- break;
- default:
- nOp = SQLFilterOperator::EQUAL;
- }
- }
- m_xParser->appendFilterByColumn( pParam->xField, sal_True,nOp );
+ m_xParser->appendFilterByColumn( pParam->xField, sal_True, SQLFilterOperator::EQUAL );
}
//------------------------------------------------------------------------------