-
Notifications
You must be signed in to change notification settings - Fork 65
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
"Unique" and "Enforce Unique constraint" does not work #3457
Comments
I can't reproduce it. This is my QGIS setup: and in the app I can clearly see the unique constrain validation: @saberraz let me please know if I am doing something wrong |
I couldn't reproduce the bug either; the functionality is working as expected. |
I have a project to test it with |
@VitorVieiraZ please coordinate with @saberraz to test the project |
It was me :D |
@VitorVieiraZ I have a test project + steps to reproduce |
@saberraz @VitorVieiraZ @wonder-sk .. can you please verify this? Or can share a test project and the steps with me? Thanks |
Hi Jozef! I have shared it with you here. |
I have a sampling layer the auto creates the field station_id off of a prefix, geologist and station_number . And then I have set this field to be "Unique" and "Enforce Unique constraint" in QGIS. In the screenshot below (I had already taken a sample named "SM2024_Elliot_001") it appropriately will not let me save this point (note the red check mark in top right corner!), however it does not give me any warning that the station_id is the culprit! When I add station number to 2 the station_id changes appropriately, and I can save the point. But it would be helpful to get a warning pop up about Unique values just like there are warnings for Null values!
The text was updated successfully, but these errors were encountered: