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
2ddf553f
Verified
Commit
2ddf553f
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-versioning
parents
9e1eaf35
1d153346
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
+9
-6
9 additions, 6 deletions
CHANGELOG.md
procedures/insertIsaCache.sql
+3
-2
3 additions, 2 deletions
procedures/insertIsaCache.sql
with
12 additions
and
8 deletions
CHANGELOG.md
+
9
−
6
View file @
2ddf553f
# Changelog
# Changelog #
All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.1.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [Unreleased]
## [Unreleased]
##
### Added
### Added
###
### Changed
### Changed
###
### Deprecated
### Deprecated
###
*
Table
`transaction_log`
is deprecated. The functionality is being replaced by the
`transactions`
table.
### Fixed
### Fixed
###
-
Fixed several bugs when an Entity inherits from itself (#18, caosdb-server #85).
>>>>>>> dev
This diff is collapsed.
Click to expand it.
procedures/insertIsaCache.sql
+
3
−
2
View file @
2ddf553f
...
...
@@ -47,6 +47,7 @@ insert_is_a_proc: BEGIN
-- Any additional entries would be redundant.
LEAVE
insert_is_a_proc
;
END
IF
;
-- Note: also for the next insertions, ignore existing lines with p == c
-- Insert ancestors older than parents:
-- for each supertype of p
...
...
@@ -60,7 +61,7 @@ insert_is_a_proc: BEGIN
p
,
-- New parent (directly)
concat
(
p
,
">"
,
i
.
rpath
))
-- Else "p>super.rpath"
AS
rpath
FROM
isa_cache
AS
i
WHERE
i
.
child
=
p
;
-- Select rows with supertype
FROM
isa_cache
AS
i
WHERE
i
.
child
=
p
AND
i
.
child
!=
i
.
parent
;
-- Select rows with supertype
-- Propagate to descendants:
-- for each subtype of c: insert each supertype of p
...
...
@@ -78,7 +79,7 @@ insert_is_a_proc: BEGIN
AS
rpath
FROM
isa_cache
as
l
INNER
JOIN
isa_cache
as
r
ON
(
l
.
parent
=
c
AND
c
=
r
.
child
);
-- Left: descendants of c, right: ancestors
ON
(
l
.
parent
=
c
AND
c
=
r
.
child
AND
l
.
child
!=
l
.
parent
);
-- Left: descendants of c, right: ancestors
END
;
//
...
...
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