Add missing directory separator that sometimes is missing in SQL database file.

This commit is contained in:
Stephen Anthony 2022-10-11 18:45:46 -02:30
parent 35e0cf7a67
commit dfb64f05a8
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include <cstdio>
#include "FSNode.hxx"
#include "SqliteDatabase.hxx"
#include "Logger.hxx"
#include "SqliteError.hxx"
@ -25,7 +26,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SqliteDatabase::SqliteDatabase(const string& databaseDirectory,
const string& databaseName)
: myDatabaseFile{databaseDirectory + databaseName + ".sqlite3"}
: myDatabaseFile{FSNode(databaseDirectory).getPath() + databaseName + ".sqlite3"}
{
}