Commit 6d8ad3b0 by Sven Klemm

require postgres 9.4+ for ordered set aggregate functions

parent 9d022766
......@@ -123,15 +123,17 @@ export class PostgresQueryCtrl extends QueryCtrl {
this.selectMenu.push(aggregates);
// ordered set aggregates require postgres 9.4+
let aggregates2 = {
text: 'Ordered-Set Aggregate Functions',
value: 'percentile',
submenu: [
{ text: 'Percentile (continuous)', value: 'percentile_cont' },
{ text: 'Percentile (discrete)', value: 'percentile_disc' },
],
};
this.selectMenu.push(aggregates2);
if (this.datasource.jsonData.postgresVersion >= 904) {
let aggregates2 = {
text: 'Ordered-Set Aggregate Functions',
value: 'percentile',
submenu: [
{ text: 'Percentile (continuous)', value: 'percentile_cont' },
{ text: 'Percentile (discrete)', value: 'percentile_disc' },
],
};
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