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

Inserting data on version views not working in 2.18 (OK in 2.14) #24458

Closed
qgib opened this issue May 15, 2017 · 6 comments
Closed

Inserting data on version views not working in 2.18 (OK in 2.14) #24458

qgib opened this issue May 15, 2017 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented May 15, 2017

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 16552
Affected QGIS version: 2.18.7
Redmine category:db_manager


  • create a PostGIS DB
  • create a simple geometric table
  • DB Manager > Table > Verioning
  • add the view to the canvas
  • start editing
  • insert a feature
  • Commit errors:
ERROR: 1 feature(s) not added.
Provider errors:
PostGIS error while adding features: ERRORE:  non è possibile eseguire INSERT RETURNING sulla relazione "version_current"
NOTA: È necessaria una regola ON INSERT DO INSTEAD non condizionale con una clausola RETURNING.

Which translates approx to:

ERROR: cannot perform
INSERT RETURNING on relation "version_current"
HINT: You need an unconditional ON INSERT DO INSTEAD rule with a
RETURNING clause.

The same operation on the same view works smoothly on QGIS 2.14.


Related issue(s): #23997 (relates)
Redmine related issue(s): 16083


@qgib
Copy link
Contributor Author

qgib commented May 15, 2017

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Normal to High

@qgib
Copy link
Contributor Author

qgib commented May 16, 2017

Author Name: Jürgen Fischer (@jef-n)


  • resolution was changed from to duplicate

@qgib
Copy link
Contributor Author

qgib commented May 16, 2017

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented May 16, 2017

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from Closed to Open
  • resolution was changed from duplicate to

@qgib
Copy link
Contributor Author

qgib commented May 16, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented May 16, 2017

Author Name: Jürgen Fischer (@jef-n)


Fixed in 8b263e4 and 3f7f95e


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed May 16, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority DB Manager Relating to the DB Manager core plugin Regression Something which used to work, but doesn't anymore labels May 25, 2019
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! DB Manager Relating to the DB Manager core plugin High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant