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
2554332d
Commit
2554332d
authored
5 years ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
DOC: more documentation
parent
9e3e1458
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
procedures/query/applyPOV.sql
+11
-3
11 additions, 3 deletions
procedures/query/applyPOV.sql
with
11 additions
and
3 deletions
procedures/query/applyPOV.sql
+
11
−
3
View file @
2554332d
...
@@ -21,14 +21,20 @@
...
@@ -21,14 +21,20 @@
* ** end header
* ** end header
*/
*/
/* Documentation including (?) has to be checked by an expert. */
DROP
PROCEDURE
IF
EXISTS
db_2_0
.
applyPOV
;
DROP
PROCEDURE
IF
EXISTS
db_2_0
.
applyPOV
;
DELIMITER
//
DELIMITER
//
CREATE
PROCEDURE
db_2_0
.
applyPOV
(
in
sourceSet
VARCHAR
(
255
),
CREATE
PROCEDURE
db_2_0
.
applyPOV
(
in
sourceSet
VARCHAR
(
255
),
/* (?) Name of the table that the POV will be applied to. This can be a temporary table. */
in
targetSet
VARCHAR
(
255
),
in
targetSet
VARCHAR
(
255
),
/* (?) Name of the result table of this POV. */
in
propertiesTable
VARCHAR
(
255
),
in
propertiesTable
VARCHAR
(
255
),
in
refIdsTable
VARCHAR
(
255
),
in
refIdsTable
VARCHAR
(
255
),
in
o
CHAR
(
4
),
in
o
CHAR
(
4
),
/* The operator for this operation. can be one of:
0 check for "equals NULL"
!0 check for "not NULL"
-> check whether a reference exists
*/
in
vText
VARCHAR
(
255
),
in
vText
VARCHAR
(
255
),
in
vInt
INT
,
in
vInt
INT
,
in
vDouble
DOUBLE
,
in
vDouble
DOUBLE
,
...
@@ -65,6 +71,8 @@ POV_LABEL: BEGIN
...
@@ -65,6 +71,8 @@ POV_LABEL: BEGIN
SET
vText
=
NULL
;
SET
vText
=
NULL
;
SET
sTextData
=
'SELECT domain_id, entity_id, property_id FROM `null_data` AS subdata'
;
SET
sTextData
=
'SELECT domain_id, entity_id, property_id FROM `null_data` AS subdata'
;
/* Question: in !0 the query is explicitly checked for NOT NULL. Aren't these NULL entries forgotten here? */
ELSEIF
o
=
'!0'
THEN
ELSEIF
o
=
'!0'
THEN
#
-- special case: property IS NOT NULL
#
-- special case: property IS NOT NULL
#
-- generate statement parts
#
-- generate statement parts
...
...
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