Skip to content

Commit 7042900

Browse files
Make Excel multi-tab metric compatible with PG <= 15 (#7832)
## Rationale The `Excel multi-tab` metric uses a subquery without an alias which isn't supported until Postgres 16+ ## Changes - Add an alias ## Tasks 📍 - [x] Claude Code Review - ~Manual Testing~ - ~Test Automation~
1 parent 445dc4d commit 7042900

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎query/src/org/labkey/query/persist/QueryManager.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ private static Map<String, Object> getExportTypeCountsMetric()
11251125
" AND CreatedBy IS NOT NULL\n" +
11261126
" GROUP BY CreatedBy, DATE_TRUNC('second', created)\n" +
11271127
" ) AS subquery\n" +
1128-
" WHERE subquery.count > 1)");
1128+
" WHERE subquery.count > 1) AS multitab");
11291129
counts.put("Excel multi-tab", new SqlSelector(dbSchema, sql)
11301130
.getObject(Long.class));
11311131
}

0 commit comments

Comments
 (0)