On Wed, Nov 24, 2010 at 10:24 AM, Max Vlasov <[email protected]> wrote:

> >
> Thanks, Richard, I thought about the name's checking, but being a little
> paranoid wondered whether the current implementation of sqlite allows for
> main db being named with -journal postfix or it's forbidden? If the latter,
> I indeed can assume that if the name ends with  -journal (maybe also other
> postfixes related to WAL), it is a special request. If former, I easily can
> forbid those postfixes for main db in my xOpen implementation resolving any
> paranoid variant.
>


SQLite does not impose any restrictions on the names of database files.

On the other hand, SQLite doesn't make filenames up.  It only uses the
filenames you pass into sqlite3_open() or give to the ATTACH command.  You
control those interfaces, so you can determine which names are valid and
which are not.

-- 
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to