Commit 6d8ad3b0 by Sven Klemm

require postgres 9.4+ for ordered set aggregate functions

parent 9d022766
......@@ -123,6 +123,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
this.selectMenu.push(aggregates);
// ordered set aggregates require postgres 9.4+
if (this.datasource.jsonData.postgresVersion >= 904) {
let aggregates2 = {
text: 'Ordered-Set Aggregate Functions',
value: 'percentile',
......@@ -132,6 +133,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
],
};
this.selectMenu.push(aggregates2);
}
let windows = {
text: 'Window Functions',
......
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