Hi,

I'm using sqlite as the sql driver of Qt 4.
I have a connection created in a thread and i call sqlite3_interrupt()  
from another one.
It's working great, perhaps i have not the behavior that say the doc :
"A call to sqlite3_interrupt() has no effect on SQL statements that  
are started after sqlite3_interrupt() returns."

I have a code like that :

void UICollection::executeQuery()
{
        mContainer.sqlModel()->stopQuery(); // this member call the  
sqlite3_interrupt()
        PageDatas page = mContainer.datas().pages().value( currentPageId() );
        int viewId = page.views().first();
        PageQueryGenerator generator( &mContainer );
        QString sql = generator.generatedQuery( page.internalId(), viewId );
        mContainer.sqlModel()->setQuery( sql );
}

In the generator object, there is a query that get all fields from a  
table, this query is interrupted by the previous stopQuery() call.
That's not what i want :(

Is it a know problem, or does it exists a workaround ?

PS: All my queries are "select" statements.

Regards, Thanks, Filipe
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to