fdo#48807 autofilter should not use LIKE operator

This demonstrates a confusion between *values* and *patterns*

Change-Id: I207aa53950166e915bbad22b022c88d07ee6300d
This commit is contained in:
Lionel Elie Mamane
2012-08-30 03:58:55 +02:00
parent 92f877ab09
commit 3655f25465
3 changed files with 3 additions and 50 deletions

View File

@@ -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 );
}
//------------------------------------------------------------------------------