Jan Kellmer wrote:
> 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,
Try the following maybe, and see what it's saying.
qDebug() << "Failed to create table:" << query.lastError();
Bill King, Software Engineer
Trolltech, Brisbane Technology Park
26 Brandl St, Eight Mile Plains,
QLD, Australia, 4113
Tel + 61 7 3219 9906 (x137)
Fax + 61 7 3219 9938
mobile: 0423 532 733
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/