You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(admin): split getMultiYearGapTrend global mode to avoid GROUP BY literal
Postgres rejects string constants in `GROUP BY` ("non-integer constant
in GROUP BY"). The previous implementation pushed `'Global'` as a
literal segment expression through the shared code path, which made
the query fail at runtime even though the Drizzle-mocked unit tests
passed.
Split the global mode into its own query branch: group by year only,
attach the hardcoded `'Global'` series label in TypeScript. Workforce
and NAF modes keep the CASE-based segment expression — those are real
expressions, which Postgres happily accepts in GROUP BY.
No behaviour change for consumers; fixes the empty chart observed in
K10 E2E tests on CI (`<figure>` never rendered because the procedure
threw 500s that the client rendered as "Aucune donnée").
0 commit comments