Skip to content

Commit e87da37

Browse files
committed
Update report example
1 parent 5b2d135 commit e87da37

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

doc/User_Guide.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,17 @@ CREATE FUNCTION local.lisa_count_loans(
205205
end_date date DEFAULT '2050-01-01')
206206
RETURNS TABLE(
207207
item_id text,
208-
loan_count integer) AS
209-
$$
208+
loan_count integer)
209+
AS $$
210210
SELECT item_id,
211211
count(*) AS loan_count
212212
FROM circulation_loans
213213
WHERE start_date <= loan_date AND loan_date < end_date
214214
GROUP BY item_id
215215
$$
216-
LANGUAGE SQL;
216+
LANGUAGE SQL
217+
STABLE
218+
PARALLEL SAFE;
217219
```
218220

219221
Now the function can be called with different arguments to generate

0 commit comments

Comments
 (0)