[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - connectivity/source
Lionel Elie Mamane
lionel at mamane.lu
Thu Jul 11 23:54:48 PDT 2013
connectivity/source/parse/sqliterator.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 99f8b0363ab3bddcd9ccffd2803b3ad99e569295
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Thu Jul 11 17:42:31 2013 +0200
sort is ascending by default
Change-Id: I38354405acbbdb27b9e7ce1d19e862b7b352c850
Reviewed-on: https://gerrit.libreoffice.org/4839
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index 6007eb9..8d0e20f 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -1110,7 +1110,7 @@ void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNo
OSQLParseNode * pOptAscDesc = pColumnRef->getParent()->getChild(1);
OSL_ENSURE(pOptAscDesc != NULL,"OSQLParseTreeIterator: error in parse tree!");
- sal_Bool bAscending = pOptAscDesc && SQL_ISTOKEN(pOptAscDesc,ASC);
+ sal_Bool bAscending = ! (pOptAscDesc && SQL_ISTOKEN(pOptAscDesc,DESC));
setOrderByColumnName(sColumnName, aTableRange,bAscending);
}
else
More information about the Libreoffice-commits
mailing list