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

[postgres] Distinguish empty and NULL values #5483

Merged
merged 3 commits into from
Oct 29, 2017

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Oct 27, 2017

Right now adding a feature with an empty string attribute to postgres will add a feature with a NULL value, if constraints are in place for this attribute.

This is especially painful when we have a string field with a NOT NULL constraint. Leaving the line edit on the form empty, it will be reported as valid with a green tick, the database will complain about the value being invalid on insert.

@m-kuhn m-kuhn merged commit 29e8990 into qgis:master Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant