- What does
tell you?Qt Code:
To copy to clipboard, switch view to plain text mode- Use exec("CREATE...") there is no need to use prepare.
From the docs:So maybe the create statement was successful but already finished, because a normal CREATE don't need much time. Have you checked your created database file, I guess the table is created there...Returns true if the query is active. An active QSqlQuery is one that has been exec()'d successfully but not yet finished with.
EDIT: and, ähh, your sql statements aren't valid!!!





Reply With Quote

Bookmarks