Skip to content
Snippets Groups Projects
Verified Commit d90a0535 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix retrieveEntity

parent 942f476f
No related branches found
No related tags found
1 merge request!12DRAFT: ENH: file system: core
......@@ -84,8 +84,8 @@ retrieveEntityBody: BEGIN
LEAVE retrieveEntityBody;
END IF;
SELECT path, size, HEX(hash)
INTO FilePath, FileSize, FileHash
SELECT path, size, hex(hash), mimetype, fileStorage, storageId
INTO FilePath, FileSize, FileHash, FileMimetype, FileStorage, FileStorageId
FROM archive_files
WHERE file_id = EntityID
AND _iversion = IVersion
......@@ -148,8 +148,8 @@ retrieveEntityBody: BEGIN
END IF;
END IF;
SELECT path, size, hex(hash)
INTO FilePath, FileSize, FileHash
SELECT path, size, hex(hash), mimetype, fileStorage, storageId
INTO FilePath, FileSize, FileHash, FileMimetype, FileStorage, FileStorageId
FROM files
WHERE file_id = EntityID
LIMIT 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment