Doing a bulk insert with missing=default
uses the default value of the domain instead of the column
#3706
Labels
missing=default
uses the default value of the domain instead of the column
#3706
Environment
Description of issue
As the title says. According to the PostgreSQL docs:
To reproduce this:
Expected:
Got:
Solution
Check if the defaults of the columns are not null first, otherwise use the domain default instead.
postgrest/src/PostgREST/SchemaCache.hs
Lines 624 to 629 in f21053d
The text was updated successfully, but these errors were encountered: