提交 a329dec6 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 6dd3ed6f
...@@ -1013,13 +1013,13 @@ public class Database implements DataHandler { ...@@ -1013,13 +1013,13 @@ public class Database implements DataHandler {
} }
private void reserveLobFileObjectIds() throws SQLException { private void reserveLobFileObjectIds() throws SQLException {
String prefix = FileUtils.normalize(databaseName); String prefix = FileUtils.normalize(databaseName) + ".";
String path = FileUtils.getParent(databaseName); String path = FileUtils.getParent(databaseName);
String[] list = FileUtils.listFiles(path); String[] list = FileUtils.listFiles(path);
for(int i=0; i<list.length; i++) { for(int i=0; i<list.length; i++) {
String name = list[i]; String name = list[i];
if(name.endsWith(Constants.SUFFIX_LOB_FILE) && FileUtils.fileStartsWith(name, prefix)) { if(name.endsWith(Constants.SUFFIX_LOB_FILE) && FileUtils.fileStartsWith(name, prefix)) {
name = name.substring(prefix.length() + 1); name = name.substring(prefix.length());
name = name.substring(0, name.length() - Constants.SUFFIX_LOB_FILE.length()); name = name.substring(0, name.length() - Constants.SUFFIX_LOB_FILE.length());
int dot = name.indexOf('.'); int dot = name.indexOf('.');
if(dot >= 0) { if(dot >= 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论