summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@oracle.com>2011-02-22 09:47:59 +0100
committerOcke Janssen [oj] <Ocke.Janssen@oracle.com>2011-02-22 09:47:59 +0100
commitbc955b2aa1879168651fe80cfa31c6fdddd20418 (patch)
tree912faffc721ec03c0e2addf817c72b6642f87ed4
parent8797a5b3d99abdec1c1fa5f24bd48311f81a6b31 (diff)
dba34c: #i117036# call getFrom clause before getSelect
-rw-r--r--wizards/com/sun/star/wizards/db/SQLQueryComposer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
index 256cac106..3ccf9ee6b 100644
--- a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
+++ b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
@@ -286,8 +286,9 @@ public class SQLQueryComposer
bincludeGrouping = _bincludeGrouping;
if (addQuery)
{
+ StringBuilder fromClause = getFromClause();
String sSelectClause = getSelectClause(_baddAliasFieldNames);
- StringBuilder queryclause = new StringBuilder(sSelectClause).append(" ").append(getFromClause());
+ StringBuilder queryclause = new StringBuilder(sSelectClause).append(" ").append(fromClause);
m_xQueryAnalyzer.setQuery(queryclause.toString());
if (CurDBMetaData.getFilterConditions() != null && CurDBMetaData.getFilterConditions().length > 0)
{