Closed azarz closed 1 year ago
The SQL request generated after the POST request is
INSERT INTO public.test_arr (, geom)
VALUES (, ST_GeomFromGeoJSON($1))
RETURNING id
As if geom
was the only column.
However, the test_arr table is defined with several columns
CREATE TABLE test_arr
(
id integer primary key,
geom geometry(point, 4326),
val_bool boolean[],
val_int integer[],
val_dp double precision[],
val_txt text[]
);
This happens when the posted feature has no property and no property is required in the schema.
When I do a POST request on a DB collection (as generated in the swagger webpage), I get a 500 error with a SQL syntax error
Even if the request is bad, (in which case, I don't know where the problem is) I think this should be a 400 error instead of a 500