Bug report #16465

Unable to create new bookmarks

Added by Alexandre Neto over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Map Tools
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:24374

Description

Trying to create a new spatial bookmark in QGIS 2.99 will fail and the following message shows:

Unable to create the bookmark.
Driver:Parameter count mismatch
Database:

Associated revisions

Revision aea21306
Added by Arnaud Morvan over 2 years ago

Fix new bookmark query. Fix #16465

QSqlQuery was returning an error : wrong parameters count.
It seems that bindValue was having no effect (no bounded values).
Using prepare after construction seems to solve the problem.

History

#1 Updated by Giovanni Manghi over 2 years ago

  • Category set to Map Tools
  • Target version set to Version 3.0

#2 Updated by Arnaud Morvan over 2 years ago

#3 Updated by Giovanni Manghi over 2 years ago

  • Regression? set to Yes

#4 Updated by Giovanni Manghi over 2 years ago

  • Priority changed from Severe/Regression to High

#5 Updated by Giovanni Manghi over 2 years ago

  • Easy fix? set to No

#6 Updated by Alexander Bruy over 2 years ago

  • Description updated (diff)
  • Pull Request or Patch supplied changed from No to Yes

#7 Updated by Arnaud Morvan over 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#8 Updated by Giovanni Manghi over 2 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF