[email protected]
[Top] [All Lists]

QSqlQuery, SQLITE table creation problem

Subject: QSqlQuery, SQLITE table creation problem
From: Jan Kellmer
Date: Sun, 2 Sep 2007 14:26:41 +0200

I'm experiencing problems creating a database table using an QSqlQuery (Qt 
4.3.1 self compiled; Kubuntu Linux 7.04; Qt uses its own SQLITE library).

According to the documentation, QSqlQuery::exec() returns true, if the query 
has been executed successfully.
Using the attached example, calling QSqlQuery::exec() always returns false. 
However, analysing a database file (created with the attachment) shows the 
table has been created.

Am I missing something?

Kind regards,

Attachment: database.cpp
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>