Re: [sqlite] sqlite3_open16 used in Qt4

2008-01-10 Thread drh
Petr Vanek <[EMAIL PROTECTED]> wrote: > I have to perform an additional check for example by a dummy > select statement to be sure it is a db. > Correct. SQLite defers opening and looking at the database file for as long as it can. This allows you to issue pragma to set up your connection. For

Re: [sqlite] sqlite3_open16 used in Qt4

2008-01-10 Thread John Stanton
Sqlite will create a database if it does not find one. You really need to add a test for the existence of the file, such as an "access". Petr Vanek wrote: hello sqlite gang, I'd like to consult here some possible bug in Qt4 SQL library. I'm fixing one bug in my Qt4 based application and I see

[sqlite] sqlite3_open16 used in Qt4

2008-01-10 Thread Petr Vanek
hello sqlite gang, I'd like to consult here some possible bug in Qt4 SQL library. I'm fixing one bug in my Qt4 based application and I see there is propably buggy QSqlDatabase::open() method in their Sqlite driver. They are using this routine to open a database: ... if (sqlite3_open16(db.cons