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

STY: Formatting only

parent 750a770f
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -48,11 +48,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### ### Fixed ###
* Fixed the `>=` and `<=` operators for comparisons in POV query filters with * Fixed the `>=` and `<=` operators for comparisons in POV query filters with
stored DATE values. The fix makes the implementation consistent stored DATE values. The fix makes the implementation consistent
However, the current definition and implementation of the However, the current definition and implementation of the
`>=` and `<=` operators for date and datetime is unintuitive and the operators `>=` and `<=` operators for date and datetime is unintuitive and the operators
should have another name. Something like "overlap with or smaller/greater should have another name. Something like "overlap with or smaller/greater
than". than".
* Semi-fix in `retrieveEntityParents`. The old implementation was buggy and * Semi-fix in `retrieveEntityParents`. The old implementation was buggy and
would return no parent name or even a wrong one for old entity versions in would return no parent name or even a wrong one for old entity versions in
some cases. The semi-fix will allways return the current name of the parent some cases. The semi-fix will allways return the current name of the parent
......
...@@ -176,21 +176,25 @@ BEGIN ...@@ -176,21 +176,25 @@ BEGIN
ELSEIF operator = "<=" THEN ELSEIF operator = "<=" THEN
IF mon != 0 and dom != 0 THEN IF mon != 0 and dom != 0 THEN
-- Full date YYYY-MM-DD -- Full date YYYY-MM-DD
RETURN CONCAT(" subdata.value<=",vILB_Date, " or (subdata.value<=", yea*10000 + mon*100, " and subdata.value%100=0)"); RETURN CONCAT(" subdata.value<=", vILB_Date,
" or (subdata.value<=", yea*10000 + mon*100, " and subdata.value%100=0)");
ELSEIF mon != 0 THEN ELSEIF mon != 0 THEN
-- Date is fragment YYYY-MM -- Date is fragment YYYY-MM
RETURN CONCAT(" subdata.value<",vEUB_Date); RETURN CONCAT(" subdata.value<", vEUB_Date);
ELSE ELSE
-- Date is fragment YYYY -- Date is fragment YYYY
RETURN CONCAT(" subdata.value<",vEUB_Date); RETURN CONCAT(" subdata.value<", vEUB_Date);
END IF; END IF;
ELSEIF operator = ">=" THEN ELSEIF operator = ">=" THEN
IF mon != 0 and dom != 0 THEN IF mon != 0 and dom != 0 THEN
-- Full date YYYY-MM-DD -- Full date YYYY-MM-DD
RETURN CONCAT(" subdata.value>=",vILB_Date, " or (subdata.value>=", yea*10000 + mon*100, " and subdata.value%100=0) or (subdata.value>=", yea*10000, " and subdata.value%10000=0)"); RETURN CONCAT(" subdata.value>=", vILB_Date,
" or (subdata.value>=", yea*10000 + mon*100, " and subdata.value%100=0)" +
" or (subdata.value>=", yea*10000, " and subdata.value%10000=0)");
ELSEIF mon != 0 THEN ELSEIF mon != 0 THEN
-- Date is fragment YYYY-MM -- Date is fragment YYYY-MM
RETURN CONCAT(" subdata.value>=", yea*10000 + mon*100, " or (subdata.value>=", yea*10000, " and subdata.value%10000=0)"); RETURN CONCAT(" subdata.value>=", yea*10000 + mon*100,
" or (subdata.value>=", yea*10000, " and subdata.value%10000=0)");
ELSE ELSE
-- Date is fragment YYYY -- Date is fragment YYYY
RETURN CONCAT(" subdata.value>=", yea*10000); RETURN CONCAT(" subdata.value>=", yea*10000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment