[Interest] QSqlDatabase

alexander golks alex at golks.de
Wed Feb 4 15:18:39 CET 2015


Am Wed, 4 Feb 2015 15:01:50 +0100
schrieb Till Oliver Knoll <till.oliver.knoll at gmail.com>:

> 
> 
> 
> 
> > ...
> >    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
> > ...
> >    bool ok = db.open();
> > 
> > When I run this ok is always true, no matter what arguments are passed.
> 
> I am not experienced with SQLITE, but is it possible that each time a new DB instance (file) is created, if no such instance exists yet? Hence the "connection" alway succeeds?
> 

or perhaps because sqlite has no notion of usernames, passwords, et al? just the "filename" matters.

-- 
/*
 *  panic("Halt failed!");
 *          linux-2.6.6/arch/sparc/kernel/process.c
 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150204/0bcd9591/attachment.sig>


More information about the Interest mailing list