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
I kept getting a NULL result, after a lot of time of head-scratching, I realized it was because of the STRICT modifier in the function. That clause is always surprising, the behavior escapes the natural flow of code.
Problem
While working on supporting DELETE with a request body, I added a new parameter with a NULL default to grant backwards compat:
Then while doing:
I kept getting a NULL result, after a lot of time of head-scratching, I realized it was because of the STRICT modifier in the function. That clause is always surprising, the behavior escapes the natural flow of code.
It also causes performance problems (PostgREST/postgrest-docs#224). IMO it should NEVER be used.
Solution
Remove STRICT from all functions.
While at it, clean up the signatures of the functions from unnecessary words like volatile, etc.
The text was updated successfully, but these errors were encountered: