Add explicit AS keyword for PostgreSQL column alias in session and event queries

Fixkamo-analytics
Spegnimento
10 aprile 2026 alle ore 01:46 UTC
Autore
lawrence3699
Impegno
3f44ec7

The session and event expanded metrics queries use implicit column aliasing (`${column} name`) which causes a PostgreSQL syntax error when the column name (like `os`) is followed by `name` without `AS`. PostgreSQL parses `os name` ambiguously and fails with: syntax error at or near "name" The sibling file getPageviewExpandedMetrics.ts already uses the correct `${column} as name` pattern. This applies the same fix to the session and event queries. Fixes #3970

Tutte le modifiche

Come quello che vedi la spedizione?

Ognuno di questi aggiornamenti atterra automaticamente nello spazio di lavoro. Inizia gratis e guardalo crescere settimana dopo settimana.

Inizia gratis per sempreVisualizza il prezzo