db.SQLQueryComposer allow prependSortingCriteria call with addAliasFieldNames

Change-Id: I05889ccac213743a55c302bd7249b30f817c0428
This commit is contained in:
Lionel Elie Mamane 2012-06-06 14:24:54 +02:00
parent b107e8a126
commit 27cab1806f

View file

@ -154,12 +154,17 @@ public class SQLQueryComposer
}
public void prependSortingCriteria() throws SQLException
{
prependSortingCriteria(false);
}
public void prependSortingCriteria(boolean _baddAliasFieldNames) throws SQLException
{
XIndexAccess xColumnIndexAccess = m_xQueryAnalyzer.getOrderColumns();
m_queryComposer.setOrder("");
for (int i = 0; i < CurDBMetaData.getSortFieldNames().length; i++)
{
appendSortingCriterion(i, false);
appendSortingCriterion(i, _baddAliasFieldNames);
}
for (int i = 0; i < xColumnIndexAccess.getCount(); i++)
{