Hello,

i have trouble using SQLite on a read-only share. The same would
happen if the file would be on a CD. In the constructor of the Conn
class (public Conn(String url, String filename)) the driver is testing
if he is able the create a file in the given dir:

// check write access if file does not exist
try {
     if (file.createNewFile()) file.delete();
} catch (Exception e) {
       throw new SQLException(
            "opening db: '" + filename + "': " +e.getMessage());
}


The statement file.createNewFile() fails on a read only share. Since
the file is there it should be possible to access it. It would be ok
to get a exception if i would try to write some data to the db, but as
long I just query data it shouldn't give a exception. I think this is
a bug, because it acts correct if the db file is read only but the dir
is writable.

Regards
Frank

--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to