[Libreoffice-commits] .: connectivity/source
Michael Stahl
mst at kemper.freedesktop.org
Mon Jan 23 04:46:13 PST 2012
connectivity/source/drivers/file/FResultSet.cxx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 7177eebc6942cc66a20514a409788ef87b1383b5
Author: Michael Stahl <mstahl at redhat.com>
Date: Mon Jan 23 13:42:37 2012 +0100
connectivity: fdo#43479: sort order doesn't matter
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index c47e92f..3316e37 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -1449,7 +1449,7 @@ sal_Bool OResultSet::OpenImpl()
// order of columns that are not specified in ORDER BY
// clause is undefined, so it doesn't hurt to sort on
// these; pad the vectors to include them.
- for (sal_Int32 i = 1;
+ for (sal_Int32 i = 1; // 0: bookmark (see setBoundedColumns)
static_cast<size_t>(i) < m_aColMapping.size(); ++i)
{
if (::std::find(m_aOrderbyColumnNumber.begin(),
@@ -1457,10 +1457,8 @@ sal_Bool OResultSet::OpenImpl()
== m_aOrderbyColumnNumber.end())
{
m_aOrderbyColumnNumber.push_back(i);
- m_aOrderbyAscending.push_back(
- (m_aOrderbyAscending.empty())
- ? SQL_ASC // default for no ORDER BY
- : m_aOrderbyAscending.back());
+ // ASC or DESC doesn't matter
+ m_aOrderbyAscending.push_back(SQL_ASC);
}
}
bDistinct = sal_True;
More information about the Libreoffice-commits
mailing list