OUT OF MEMORY - Error while working with sqlite
Dear Friends,
I am gettting OUT OF MEMORY error while working with sqlite. while executing the following sql statement
Code:
q=db->SelectQuery("SELECT name FROM sqlite_master WHERE name= 'tablename'");//im getting error while executing this stament
i had used query like this in many part of my project. i am getting error while executing the above query in particular part
Code:
out of memory Unable to execute statement
i am looking to solve this problem can anybody help me.....
Regards
askar
Re: OUT OF MEMORY - Error while working with sqlite
your problem is probably something else.
why don't you use QSqlQuery like this:
Code:
QSqlQuery query
("SELECT country FROM artist");
while (query.next()) {
QString country
= query.
value(0).
toString();
doSomething(country);
}