Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When INSERTing, use NULL when parent doesn't have specified field #252

Closed
wants to merge 1 commit into from
Closed

When INSERTing, use NULL when parent doesn't have specified field #252

wants to merge 1 commit into from

Commits on May 9, 2018

  1. When INSERTing, use NULL when parent doesn't have specified field

    This is "adresseerbaarobjectnevenadres" has 3 fields, only one of which
    will be present in the _parent object (ligplaatsstatus, standplaatsstatus
    or verblijfplaatsstatus).
    
    Because the database uses enum types for these values, and those enums
    don't contain the empty string, inserting these records breaks.
    
    By inserting NULLs instead, everything works the same as when using the
    "COPY" statement.
    Martijn van de Streek committed May 9, 2018
    Configuration menu
    Copy the full SHA
    c99411d View commit details
    Browse the repository at this point in the history