summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/file/fcode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/file/fcode.cxx')
-rw-r--r--connectivity/source/drivers/file/fcode.cxx66
1 files changed, 33 insertions, 33 deletions
diff --git a/connectivity/source/drivers/file/fcode.cxx b/connectivity/source/drivers/file/fcode.cxx
index 67c58ad9ca7a..bb48041a3036 100644
--- a/connectivity/source/drivers/file/fcode.cxx
+++ b/connectivity/source/drivers/file/fcode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -135,7 +135,7 @@ sal_Bool OOperandAttr::isIndexed() const
}
//------------------------------------------------------------------
OOperandParam::OOperandParam(OSQLParseNode* pNode, sal_Int32 _nPos)
- : OOperandRow(static_cast<sal_uInt16>(_nPos), DataType::VARCHAR) // Standard-Typ
+ : OOperandRow(static_cast<sal_uInt16>(_nPos), DataType::VARCHAR) // Standard-Typ
{
OSL_ENSURE(SQL_ISRULE(pNode,parameter),"Argument ist kein Parameter");
OSL_ENSURE(pNode->count() > 0,"Fehler im Parse Tree");
@@ -158,8 +158,8 @@ OOperandParam::OOperandParam(OSQLParseNode* pNode, sal_Int32 _nPos)
// Symmetriegruenden ...)
// todo
- // OColumn* pColumn = new OFILEColumn(aParameterName,eDBType,255,0,SQL_FLAGS_NULLALLOWED);
- // rParamColumns->AddColumn(pColumn);
+ // OColumn* pColumn = new OFILEColumn(aParameterName,eDBType,255,0,SQL_FLAGS_NULLALLOWED);
+ // rParamColumns->AddColumn(pColumn);
// der Wert wird erst kurz vor der Auswertung gesetzt
}
@@ -179,15 +179,15 @@ OOperandConst::OOperandConst(const OSQLParseNode& rColumnRef, const rtl::OUStrin
switch (rColumnRef.getNodeType())
{
case SQL_NODE_STRING:
- m_aValue = aStrValue;
- m_eDBType = DataType::VARCHAR;
+ m_aValue = aStrValue;
+ m_eDBType = DataType::VARCHAR;
m_aValue.setBound(sal_True);
return;
case SQL_NODE_INTNUM:
case SQL_NODE_APPROXNUM:
{
- m_aValue = aStrValue.toDouble();
- m_eDBType = DataType::DOUBLE;
+ m_aValue = aStrValue.toDouble();
+ m_eDBType = DataType::DOUBLE;
m_aValue.setBound(sal_True);
return;
}
@@ -230,9 +230,9 @@ sal_Bool OBoolOperator::operate(const OOperand*, const OOperand*) const
void OBoolOperator::Exec(OCodeStack& rCodeStack)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OBoolOperator::Exec" );
- OOperand *pRight = rCodeStack.top();
+ OOperand *pRight = rCodeStack.top();
rCodeStack.pop();
- OOperand *pLeft = rCodeStack.top();
+ OOperand *pLeft = rCodeStack.top();
rCodeStack.pop();
rCodeStack.push(new OOperandResultBOOL(operate(pLeft, pRight)));
@@ -259,7 +259,7 @@ void OOp_NOT::Exec(OCodeStack& rCodeStack)
delete pOperand;
}
//------------------------------------------------------------------
-sal_uInt16 OOp_NOT::getRequestedOperands() const
+sal_uInt16 OOp_NOT::getRequestedOperands() const
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OOp_NOT::getRequestedOperands" );
return 1;
@@ -280,7 +280,7 @@ sal_Bool OOp_OR::operate(const OOperand* pLeft, const OOperand* pRight) const
}
//------------------------------------------------------------------
-sal_uInt16 OOp_ISNULL::getRequestedOperands() const
+sal_uInt16 OOp_ISNULL::getRequestedOperands() const
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OOp_ISNULL::getRequestedOperands" );
return 1;
@@ -364,13 +364,13 @@ sal_Bool OOp_COMPARE::operate(const OOperand* pLeft, const OOperand* pRight) con
sRH.pData->length );
switch(aPredicateType)
{
- case SQLFilterOperator::EQUAL: bResult = (nRes == 0); break;
- case SQLFilterOperator::NOT_EQUAL: bResult = (nRes != 0); break;
- case SQLFilterOperator::LESS: bResult = (nRes < 0); break;
- case SQLFilterOperator::LESS_EQUAL: bResult = (nRes <= 0); break;
- case SQLFilterOperator::GREATER: bResult = (nRes > 0); break;
- case SQLFilterOperator::GREATER_EQUAL: bResult = (nRes >= 0); break;
- default: bResult = sal_False;
+ case SQLFilterOperator::EQUAL: bResult = (nRes == 0); break;
+ case SQLFilterOperator::NOT_EQUAL: bResult = (nRes != 0); break;
+ case SQLFilterOperator::LESS: bResult = (nRes < 0); break;
+ case SQLFilterOperator::LESS_EQUAL: bResult = (nRes <= 0); break;
+ case SQLFilterOperator::GREATER: bResult = (nRes > 0); break;
+ case SQLFilterOperator::GREATER_EQUAL: bResult = (nRes >= 0); break;
+ default: bResult = sal_False;
}
} break;
case DataType::TINYINT:
@@ -389,15 +389,15 @@ sal_Bool OOp_COMPARE::operate(const OOperand* pLeft, const OOperand* pRight) con
switch (aPredicateType)
{
- case SQLFilterOperator::EQUAL: bResult = (n == m); break;
- case SQLFilterOperator::LIKE: bResult = (n == m); break;
- case SQLFilterOperator::NOT_EQUAL: bResult = (n != m); break;
- case SQLFilterOperator::NOT_LIKE: bResult = (n != m); break;
- case SQLFilterOperator::LESS: bResult = (n < m); break;
- case SQLFilterOperator::LESS_EQUAL: bResult = (n <= m); break;
- case SQLFilterOperator::GREATER: bResult = (n > m); break;
- case SQLFilterOperator::GREATER_EQUAL: bResult = (n >= m); break;
- default: bResult = sal_False;
+ case SQLFilterOperator::EQUAL: bResult = (n == m); break;
+ case SQLFilterOperator::LIKE: bResult = (n == m); break;
+ case SQLFilterOperator::NOT_EQUAL: bResult = (n != m); break;
+ case SQLFilterOperator::NOT_LIKE: bResult = (n != m); break;
+ case SQLFilterOperator::LESS: bResult = (n < m); break;
+ case SQLFilterOperator::LESS_EQUAL: bResult = (n <= m); break;
+ case SQLFilterOperator::GREATER: bResult = (n > m); break;
+ case SQLFilterOperator::GREATER_EQUAL: bResult = (n >= m); break;
+ default: bResult = sal_False;
}
} break;
default:
@@ -411,9 +411,9 @@ void ONumOperator::Exec(OCodeStack& rCodeStack)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "ONumOperator::Exec" );
- OOperand *pRight = rCodeStack.top();
+ OOperand *pRight = rCodeStack.top();
rCodeStack.pop();
- OOperand *pLeft = rCodeStack.top();
+ OOperand *pLeft = rCodeStack.top();
rCodeStack.pop();
rCodeStack.push(new OOperandResultNUM(operate(pLeft->getValue(), pRight->getValue())));
@@ -465,7 +465,7 @@ void ONthOperator::Exec(OCodeStack& rCodeStack)
do
{
OSL_ENSURE(!rCodeStack.empty(),"Stack must be none empty!");
- pOperand = rCodeStack.top();
+ pOperand = rCodeStack.top();
rCodeStack.pop();
if ( !IS_TYPE(OStopOperand,pOperand) )
aValues.push_back( pOperand->getValue() );
@@ -487,9 +487,9 @@ void ONthOperator::Exec(OCodeStack& rCodeStack)
void OBinaryOperator::Exec(OCodeStack& rCodeStack)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OBinaryOperator::Exec" );
- OOperand *pRight = rCodeStack.top();
+ OOperand *pRight = rCodeStack.top();
rCodeStack.pop();
- OOperand *pLeft = rCodeStack.top();
+ OOperand *pLeft = rCodeStack.top();
rCodeStack.pop();
if ( !rCodeStack.empty() && IS_TYPE(OStopOperand,rCodeStack.top()) )