Bug 403034 - SQLite backend encounters DATABASE ERROR " Parameter count mismatch"
Summary: SQLite backend encounters DATABASE ERROR " Parameter count mismatch"
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 415957 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-09 13:05 UTC by Erik Quaeghebeur
Modified: 2023-04-25 17:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example output for failed marking as read for mails (9.42 KB, text/plain)
2019-01-09 13:05 UTC, Erik Quaeghebeur
Details
Example output for unknown operation (7.42 KB, text/plain)
2019-01-09 13:06 UTC, Erik Quaeghebeur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2019-01-09 13:05:20 UTC
Created attachment 117354 [details]
Example output for failed marking as read for mails

SUMMARY

I switched to the SQLite backend. On the console, I saw that there occur DATABASE ERRORs named " Parameter count mismatch". One example is when I try to mark a large set of mails as read. This didn't work, so I guess the corresponding query failed. I'm attaching two examples.

Googling, I saw that this error occurred elsewhere in Qt code using SQLite:

https://www.qtcentre.org/threads/30220-Using-bound-values-in-insert-gives-quot-parameter-count-mismatch-quot-error-in-SQLite
https://stackoverflow.com/questions/20786003/qt-qsqlquery-bindvalue-works-with-but-not-with-placeholders
https://stackoverflow.com/questions/24684550/qt-5-with-sqlite-bindvalue-results-in-parameter-count-mismatch-error 

It may be that the same type of bug occurs in akonadi. In that case, this issue may be a relatively easy one to fix.


SOFTWARE/OS VERSIONS

Akonadi version: 18.08.3
KDE Plasma Version: 5.14.3 
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.1


ADDITIONAL INFORMATION

Despite the failed queries, the SQLite backend seems to function well.
Comment 1 Erik Quaeghebeur 2019-01-09 13:06:03 UTC
Created attachment 117355 [details]
Example output for unknown operation
Comment 2 Carl Schwan 2023-04-25 17:27:16 UTC
*** Bug 415957 has been marked as a duplicate of this bug. ***