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
332217e4
Commit
332217e4
authored
4 years ago
by
Timm Fitschen
Committed by
Henrik tom Wörden
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
F fix versioning bug
parent
5b24d206
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
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
procedures/retrieveEntityOverrides.sql
+7
-9
7 additions, 9 deletions
procedures/retrieveEntityOverrides.sql
with
11 additions
and
9 deletions
CHANGELOG.md
+
4
−
0
View file @
332217e4
...
...
@@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ###
*
Bug in
`retrieveOverrides`
function where selecting the datatype of an old
version resultet in an error. See corresponding test in
`caosdb-pyinttest`
`tests/test_versioning.py::test_datatype_without_name`
### Security ###
## 3.0.0 (2020-09-01) ##
...
...
This diff is collapsed.
Click to expand it.
procedures/retrieveEntityOverrides.sql
+
7
−
9
View file @
332217e4
...
...
@@ -91,13 +91,11 @@ retrieveOverridesBody: BEGIN
NULL
AS
collection_override
,
NULL
AS
name_override
,
NULL
AS
desc_override
,
(
SELECT
value
FROM
(
SELECT
value
FROM
name_data
WHERE
domain_id
=
0
AND
entity_ID
=
datatypeID
AND
property_id
=
20
UNION
SELECT
datatype
AS
value
)
AS
tmp
LIMIT
1
)
AS
type_override
,
IFNULL
((
SELECT
value
FROM
name_data
WHERE
domain_id
=
0
AND
entity_id
=
datatype
AND
property_id
=
20
LIMIT
1
),
datatype
)
AS
type_override
,
entity_id
,
property_id
FROM
archive_data_type
...
...
@@ -154,10 +152,10 @@ retrieveOverridesBody: BEGIN
NULL
AS
collection_override
,
NULL
AS
name_override
,
NULL
AS
desc_override
,
(
SELECT
value
FROM
name_data
IFNULL
(
(
SELECT
value
FROM
name_data
WHERE
domain_id
=
0
AND
entity_ID
=
datatype
AND
property_id
=
20
LIMIT
1
)
AS
type_override
,
AND
property_id
=
20
LIMIT
1
),
datatype
)
AS
type_override
,
entity_id
,
property_id
FROM
data_type
...
...
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