Kaydet (Commit) c3867083 authored tarafından Damjan Jovanovic's avatar Damjan Jovanovic Kaydeden (comit) Caolán McNamara

Resolves: #i56289# no GROUP BY - COUNT from wizard

Implement the COUNT operator for GROUP BY in the Base Query Wizard,
and delete some unused resource strings to make space for it.

Found by: dtinazzi at easyasp dot it
Patch by: me

(cherry picked from commit 1f6546d6)

Change-Id: I6395566275cea6a33cdc64968b3b31aa17d61554
üst 3a2037b1
...@@ -40,7 +40,7 @@ public class AggregateComponent extends ControlScroller ...@@ -40,7 +40,7 @@ public class AggregateComponent extends ControlScroller
private String[] sFunctions; private String[] sFunctions;
private String[] sFunctionOperators = new String[] private String[] sFunctionOperators = new String[]
{ {
"SUM", "AVG", "MIN", "MAX" "SUM", "AVG", "MIN", "MAX", "COUNT"
}; };
private QueryMetaData CurDBMetaData; private QueryMetaData CurDBMetaData;
private String soptDetailQuery; private String soptDetailQuery;
...@@ -185,7 +185,7 @@ public class AggregateComponent extends ControlScroller ...@@ -185,7 +185,7 @@ public class AggregateComponent extends ControlScroller
soptSummaryQuery = CurUnoDialog.m_oResource.getResText(BaseID + 12); soptSummaryQuery = CurUnoDialog.m_oResource.getResText(BaseID + 12);
slblAggregate = CurUnoDialog.m_oResource.getResText(BaseID + 16); slblAggregate = CurUnoDialog.m_oResource.getResText(BaseID + 16);
slblFieldNames = CurUnoDialog.m_oResource.getResText(BaseID + 17); slblFieldNames = CurUnoDialog.m_oResource.getResText(BaseID + 17);
sFunctions = CurUnoDialog.m_oResource.getResArray(BaseID + 40, 4); sFunctions = CurUnoDialog.m_oResource.getResArray(BaseID + 40, 5);
sDuplicateAggregateFunction = CurUnoDialog.m_oResource.getResText(BaseID + 90); sDuplicateAggregateFunction = CurUnoDialog.m_oResource.getResText(BaseID + 90);
} }
......
...@@ -812,22 +812,7 @@ String RID_DB_QUERY_WIZARD_START + 43 ...@@ -812,22 +812,7 @@ String RID_DB_QUERY_WIZARD_START + 43
String RID_DB_QUERY_WIZARD_START + 44 String RID_DB_QUERY_WIZARD_START + 44
{ {
Text [ en-US] = "get the sum of <FIELD>"; Text [ en-US] = "get the count of";
};
String RID_DB_QUERY_WIZARD_START + 45
{
Text [ en-US] = "get the average of <FIELD>";
};
String RID_DB_QUERY_WIZARD_START + 46
{
Text [ en-US] = "get the minimum of <FIELD>";
};
String RID_DB_QUERY_WIZARD_START + 47
{
Text [ en-US] = "get the maximum of <FIELD>";
}; };
String RID_DB_QUERY_WIZARD_START + 48 String RID_DB_QUERY_WIZARD_START + 48
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment