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

Spatialite column with AUTOINCREMENT block with forms #27762

Closed
qgib opened this issue Sep 25, 2018 · 9 comments
Closed

Spatialite column with AUTOINCREMENT block with forms #27762

qgib opened this issue Sep 25, 2018 · 9 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Sep 25, 2018

Author Name: Loïc BARTOLETTI (@lbartoletti)
Original Redmine Issue: 19940
Affected QGIS version: 3.3(master)
Redmine category:forms


When adding an entity to a spatialite table with a field with AUTOINCREMENT, the input in the form is blocked, because the value must be added manually. The form does not know how to retrieve the last value and expects a non NULL value. There is no such problem by going through the entry in the attribute table


@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2018

Author Name: Giovanni Manghi (@gioman)


Did it worked as expected on 2.18?


  • category_id was changed from Editing to Forms
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2018

Author Name: Gerhard Spieles (Gerhard Spieles)


This was issue #25484 in master between 2.18.14 an 2.18.16 and seems now a regression.

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2018

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Normal to High
  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Oct 3, 2018

Author Name: Alessandro Pasotti (@elpaso)


I cannot reproduce on current master, can you share a project?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 23, 2018

Author Name: Loïc BARTOLETTI (@lbartoletti)


If you create the spatialite from "Create New Spatialite Layer" it works but a spatialite created from DB Manager (was my case) doesn't works.


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Oct 23, 2018

Author Name: Regis Haubourg (@haubourg)


Can you share your database? I created a spatialite from dbmanager using the "export to file" button, and I couldn't reproduct the issue.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Dec 12, 2018

Author Name: Loïc BARTOLETTI (@lbartoletti)


Couldn't reproduct too... Maybe I did a bad action at another time... a bad monkey tester :)

@qgib
Copy link
Contributor Author

qgib commented Dec 12, 2018

Author Name: Loïc BARTOLETTI (@lbartoletti)


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Dec 12, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Forms Regression Something which used to work, but doesn't anymore labels May 25, 2019
@EnFiore
Copy link

EnFiore commented Mar 13, 2020

Hi,
I have noticed the same issue in QGIS 3.10.3.
If Spatialite is created by a geojson or by command 'new spatialite' the issue is the same as described. If spatialite is created starting by shapefile the issue not happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

2 participants