Skip to content

Commit

Permalink
SQL-176 add AS to postgresql timeline query so it doesn't error on 12…
Browse files Browse the repository at this point in the history
… and up (#286)
  • Loading branch information
milt authored Feb 24, 2023
1 parent b85c716 commit 90454ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/postgres/lrsql/postgres/sql/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ GROUP BY platform;
-- :command :query
-- :result :many
-- :doc Return counts of statements by time unit for a given range.
SELECT SUBSTRING(payload->>'stored' FOR :unit-for) stored,
SELECT SUBSTRING(payload->>'stored' FOR :unit-for) AS stored,
COUNT(id) scount
FROM xapi_statement
WHERE id > :since-id
Expand Down

0 comments on commit 90454ba

Please sign in to comment.