Error when creating query with QSqlQuery
-
Hello,
I have a problem with the following lines:
aQuery.prepare("CREATE TABLE USER (" "ID INTEGER PRIMARY KEY, " "HEIGHT INTEGER, " "AGE INTEGER, " "TXT TEXT" ")"); if( ! aQuery.exec()) { return false; }
I have the following error message :
SQL error 1: No query Unable to fetch row
I made some research on google, but the only solution ive seen is by completely changing the method, and on a previous project, this type of Query completely worked for me.
Does someone have an idea on where could be the error ?
Thanks you.
-
Hi,
Glad you found out, don't forget to mark the thread as solved using the "Topic Tools" button so other forum users may know a solution has been found :-)