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

the "not null" constraint works if the attribute shows literally "NULL" while does not work if the cell is empty #29722

Open
qgib opened this issue Apr 23, 2019 · 2 comments
Labels
Feature Request Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Apr 23, 2019

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 21907

Redmine category:vectors


While I understand the difference between NULL and empty, for the vast majority of users NULL=empty.

Is this the intended behavior or is a bug? if is not considered a bug than I would suggest add a "not empty" option.

@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2019

Author Name: Matthias Kuhn (@m-kuhn)


It was implemented in a database compliant way, so it definitely is "expected behavior".

I think that this could possibly also be improved a lot by changing the behavior of the TextEdit widget which at the moment makes it very easy to get to a "empty" (accepted) value, whereas it should make this very hard and "by default" be NULL on empty.

@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2019

Author Name: Giovanni Manghi (@gioman)


Hi Matthias, thanks for the feedback

Matthias Kuhn wrote:

It was implemented in a database compliant way, so it definitely is "expected behavior".

ok, this becomes a feature request then

I think that this could possibly also be improved a lot by changing the behavior of the TextEdit widget which at the moment makes it very easy to get to a "empty" (accepted) value, whereas it should make this very hard and "by default" be NULL on empty.

agree, or as I said add a "not empty" option


  • tracker_id was changed from 1 to 2

@qgib qgib added Feature Request Vectors Related to general vector layer handling (not specific data formats) labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant