File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
frameworks/Haskell/postgrest Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ http://localhost:8080/cached_query?queries=
3737
3838### UPDATE Not Implemented
3939
40- http://localhost:3000/rpc/update ?queries=
40+ http://localhost:3000/rpc/updates ?queries=
4141
4242### FORTUNES
4343
Original file line number Diff line number Diff line change 1- create or replace function update (queries text default ' ' ) returns jsonb as $$
1+ create or replace function updates (queries text default ' ' ) returns jsonb as $$
22DECLARE
33 r " World" %ROWTYPE;
44 j jsonb := jsonb_build_array();
55 new_rnd int ;
66 rnd_id int ;
77 count int ;
88BEGIN
9- SET TRANSACTION READ WRITE;
109 IF queries ~ ' ^[1-9]\d {0,2}$' THEN
1110 count := CAST(queries as int );
12- ELSE
13- count := 1 ;
11+ ELSE
12+ count := 1 ;
1413 END IF;
1514 IF count > 500 THEN
1615 count := 500 ;
You can’t perform that action at this time.
0 commit comments