tdf#155751: dBase: BETWEEN won't include first and last value in queries
Since the beginning:
commit 86c5930e98
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon Aug 2 16:04:09 2004 +0000
INTEGRATION: CWS insight01 (1.19.14); FILE MERGED
2004/06/03 14:48:29 oj 1.19.14.3: #i18836# imple between key word
2004/05/28 11:16:26 oj 1.19.14.2: RESYNC: (1.19-1.20); FILE MERGED
2004/05/12 10:48:11 oj 1.19.14.1: change SQLFilterOperator
Change-Id: I75d00c313072e08279ca2f37cb65bb3414447d16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173036
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
7f50471615
commit
403075b461
1 changed files with 2 additions and 2 deletions
|
@ -330,12 +330,12 @@ void OPredicateCompiler::execute_BETWEEN(OSQLParseNode const * pPredicateNode)
|
|||
|
||||
OOperand* pColumnOp = execute(pColumn);
|
||||
OOperand* pOb1 = execute(p1stValue);
|
||||
OBoolOperator* pOperator = new OOp_COMPARE(bNot ? SQLFilterOperator::LESS_EQUAL : SQLFilterOperator::GREATER);
|
||||
OBoolOperator* pOperator = new OOp_COMPARE(bNot ? SQLFilterOperator::LESS : SQLFilterOperator::GREATER_EQUAL);
|
||||
m_aCodeList.emplace_back(pOperator);
|
||||
|
||||
execute(pColumn);
|
||||
OOperand* pOb2 = execute(p2ndtValue);
|
||||
pOperator = new OOp_COMPARE(bNot ? SQLFilterOperator::GREATER_EQUAL : SQLFilterOperator::LESS);
|
||||
pOperator = new OOp_COMPARE(bNot ? SQLFilterOperator::GREATER : SQLFilterOperator::LESS_EQUAL);
|
||||
m_aCodeList.emplace_back(pOperator);
|
||||
|
||||
if ( pColumnOp && pOb1 && pOb2 )
|
||||
|
|
Loading…
Reference in a new issue