Am 22.06.2012 15:12, schrieb Thomas Mueller:
Hi,

On Wed, Jun 13, 2012 at 9:31 AM, toolforger <[email protected]> wrote:
The JDBC URL is a string which includes a file pathname.
What will happen if that name contains special characters, such as
- blanks
- colons
- semicolons
- control codes?

The same as if you try to create such a file.

Well, since I had no answer, I stepped through all the layers and found this:
a) Yes, it's limited to what the file system allows.
b) However, the name is inserted into the JDBC URL, which uses ';' as a delimiter. So even if the file system allows ';', the JDBC URL will likely be malformed and opening the driver will fail before it gets to file creation. (Disclaimer: The delimiter may be ':' instead of ';', but I'm too lazy to look it up right now.)

My use case is that the file name (including directory path) is
user-settable.

Isn't this a security problem?

Not for my use case, where the db is created by a local user within his home directory :-)

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to