diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-06 14:24:54 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-06 14:51:39 +0200 |
commit | 27cab1806f8359ee078ac74e17f8ea40a2e5c85d (patch) | |
tree | 6ef9abfea2f2b1a0b81c31764611e1586bd9786b /wizards | |
parent | b107e8a126afdd43f998c6027b86ad687a6369ca (diff) |
db.SQLQueryComposer allow prependSortingCriteria call with addAliasFieldNames
Change-Id: I05889ccac213743a55c302bd7249b30f817c0428
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/db/SQLQueryComposer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java index a1cdb568ef57..059412a68d6a 100644 --- a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java +++ b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java @@ -155,11 +155,16 @@ 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++) { |