Commit 07ba0d3c by Dane Springmeyer

Merge pull request #283 from everyevery/fix_window_absolute_path_error

fix db opening error with absolute path on windows
parents b3cbf17d 83233322
......@@ -26,9 +26,7 @@ sqlite3.cached = {
return new Database(file, a, b);
}
if (file[0] !== '/') {
file = path.join(process.cwd(), file);
}
file = path.resolve(file);
if (!sqlite3.cached.objects[file]) {
var db =sqlite3.cached.objects[file] = new Database(file, a, b);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment