Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
214c8acf
Unverified
Commit
214c8acf
authored
4 years ago
by
Daniel
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Retrieve name also with correct version.
parent
479e4681
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/patch20200710-3.0.0-rc2/fix_unversioned.sql
+2
-2
2 additions, 2 deletions
patches/patch20200710-3.0.0-rc2/fix_unversioned.sql
procedures/retrieveEntity.sql
+4
-1
4 additions, 1 deletion
procedures/retrieveEntity.sql
with
6 additions
and
3 deletions
patches/patch20200710-3.0.0-rc2/fix_unversioned.sql
+
2
−
2
View file @
214c8acf
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
procedures/retrieveEntity.sql
+
4
−
1
View file @
214c8acf
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment