[Kde-pim] Akonadi and Plasma Active

Kevin Krammer krammer at kde.org
Thu Jan 24 15:28:58 UTC 2013


On Thursday, 2013-01-24, Marco Martin wrote:
> On Thursday 24 January 2013, Marco Martin wrote:

> > mQuery.prepare( statement ); at line 281 of querybuilder.cpp? seems to
> > always return true
> 
> quite interesting finding:
> in querybuilder.cpp, always there
> 
>  if ( QueryCache::contains( statement ) ) {
>     mQuery = QueryCache::query( statement );
>   } else {
>     mQuery.prepare( statement );
>     QueryCache::insert( statement, mQuery );
>   }
> 
> if i make the else branch to always execute (ie never using the cache) it's
> still broken.
> but, if i disable also QueryCache::insert( statement, mQuery );
> so never inserting anything in the cache, all starts to work normally
> again. ie even just saving those prepared queries somewhere makes it fail.

I don't know enough about the database stuff but it seems we'll have to 
deactivate prepared queries when sqlite is being used (assuming it works with 
PostgreSQL).

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/active/attachments/20130124/1a0dc9af/attachment-0001.sig>


More information about the Active mailing list