-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zafer Ergül wrote:
> There is no problem but in the folder when the connection closed ,  
> created a file which is the same name with database file
> but extension is db.db
> why

It is very difficult to understand to your description and you appear to be
using some language over the SQLite library.  The default behaviour of the
SQLite API in the past has been to create the database file when you opened
it.  This means that you couldn't use the open call to check for database
existence.

The more recent sqlite3_open_v2 API lets you specify SQLITE_OPEN_READONLY
which will not create the database and will give an error if it does not exist.

  http://www.sqlite.org/c3ref/open.html

Also not that SQLite does not care about extensions and does not add any.
Whatever file name is passed to sqlite3_open/v2 is exactly what gets used.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkstDIAACgkQmOOfHg372QQbNgCgqa1UCh6iFv+sx2HZUUX8DqSy
wvsAnisFKU9b+ExukzrMXSnFhdDHCy41
=8nBi
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to