Skip to content
Snippets Groups Projects
Unverified Commit 214c8acf authored by Daniel's avatar Daniel
Browse files

FIX: Retrieve name also with correct version.

parent 479e4681
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ BEGIN
AND t.nanos = l.nanos
AND t.username = l.username
AND t.realm = l.realm )
WHERE l.entity_id = unversioned_id AND unversioned_id > 99
WHERE l.entity_id = unversioned_id AND unversioned_id >= 100
UNION SELECT
unversioned_id AS entity_id,
NULL AS hash,
......@@ -98,7 +98,7 @@ BEGIN
t.seconds AS seconds,
t.nanos AS nanos
FROM transactions AS t
WHERE t.seconds = 0 AND t.nanos = 0 AND unversioned_id<100
WHERE t.seconds = 0 AND t.nanos = 0 AND unversioned_id < 100
) AS tmp ORDER BY tmp.seconds DESC, tmp.nanos DESC LIMIT 1;
......
......@@ -126,7 +126,10 @@ retrieveEntityBody: BEGIN
( SELECT value FROM archive_name_data
WHERE domain_id = 0
AND entity_ID = EntityID
AND property_id = 20 LIMIT 1) AS EntityName,
AND property_id = 20
AND _iversion = IVersion
-- LIMIT 1 -- TODO Remove this line if all tests pass.
) AS EntityName,
e.description AS EntityDesc,
e.role AS EntityRole,
FileSize AS FileSize,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment