Hi,
Please use the Google Group and don't send mails to me directly.
Others may also want to participate in the discussion. The original
mail is below.
> I'd like to implement this feature as you specified (database file
> name suffix) and then provide a patch.
> Could you please tell me in which class the file name is assigned?
Check for Constants.SUFFIX_PAGE_FILE. Usually the code is written like this:
String fn = db.getName() + Constants.SUFFIX_PAGE_FILE;
Currently there are other suffixes as well (trace file, lock file,
temp files, lob files; see Constants.SUFFIX_*). What about if the
suffix is still used in those cases? Therefore, I suggest to use a new
method in Database.java, similar to the following (untested):
public static String getDatabaseFileName(String databaseName, String suffix) {
if (databaseName.endsWith(".")) {
String fileName = databaseName.substring(0, databaseName.length() - 1)
if (suffix.equals(Constants.SUFFIX_PAGE_FILE)) {
return fileName;
}
return fileName + suffix;
}
return databaseName + suffix;
}
Regards,
Thomas
On Sun, Jul 18, 2010 at 8:47 PM, Costantino ... wrote:
> Hi Thomas,
>
> I'd like to implement this feature as you specified (database file
> name suffix) and then provide a patch.
> Could you please tell me in which class the file name is assigned?
>
> Regards,
> Costantino
--
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.