[Qt-interest] qsqlite open bug ?
Stephen Collyer
scollyer at netspinner.co.uk
Thu Mar 4 12:39:50 CET 2010
On 3 March 2010 15:52, R. Reucher <rene.reucher at batcom-it.net> wrote:
> Stephen Collyer wrote:
> > Qt 4.6.1 on Opensuse 11.1
> >
> > I have some code that creates/opens a Sqlite DB like so:
> >
> > QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE", conn_name);
> > db.setDatabaseName(dbname);
> >
> > if (! db.open())
> > {
> > <throw an exception>
> > }
> >
> > db.open returns false consistently, regardless of whether a file exists
> at
> > the location
> > specified by dbname.
> >
> > db.lastError() reports "Unable to fetch row".
> >
> > Is this a known bug ?
> Sure you don't see a local problem here? Access permissions? Broken files?
>
>
Problem solved. It was my mistake. The exception was being thrown a little
later by code generating a query for a Mysql db,
rather than sqlite. I was confused.
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100304/113bc2f4/attachment.html
More information about the Qt-interest-old
mailing list