You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
postgrest fails with cryptic message when only one record is posted in bulk insert (or simple insert) and select parameter does not ask for primary key.
When more then one record posted then everything works fine.
As I understood the problem is with headers field, database returns null in this case and with
let (isSingle, nRows) = case pjType of
PJArray len -> (len == 1, len)
In this case postgres unexpectedly wants to return location header and fails.
A problem that comes with that change is that the Location header will be missing for successful POSTs and it shouldn't, I think the best solution for this issue would be making the Location header independent of the select.
postgrest fails with cryptic message when only one record is posted in bulk insert (or simple insert) and select parameter does not ask for primary key.
When more then one record posted then everything works fine.
As I understood the problem is with headers field, database returns null in this case and with
In this case postgres unexpectedly wants to return location header and fails.
Simple test scenario snippet follows
Version: current stable 4.4.0 from docker hub
The text was updated successfully, but these errors were encountered: