Commit 8f0250e7 authored by Marco De Marco's avatar Marco De Marco
Browse files

Storage path, file_path sql query fix

parent 9a5db18f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -332,13 +332,13 @@ void WorkerThread::execQuery(ConnectionManager::SessionSP session_sp,

	//Append storage path column to query
	insertQuery << "storage_path";
	valuesQuery << "\'" << destination_sp->getStoragePath()
        << "/" << destination_sp->getDirName() << "\'";
	valuesQuery << "\'" << destination_sp->getStoragePath() << "\'";

	//Append file path column to query
	insertQuery << ",file_path";
	int month = date.month();
	valuesQuery << ",\'/" << date.year() << "/" << month << "/" << date.day() << "\'";
	valuesQuery << ",\'/" << destination_sp->getDirName() << "/"
        << date.year() << "/" << month << "/" << date.day() << "\'";

	//Append file version column to query
	insertQuery << ",file_version";