File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ BEGIN
193193 _ageyoung := - 250 ;
194194 END IF;
195195
196- IF _ageDoContain = true THEN
196+ IF _agedocontain = true THEN
197197 cteAgesWhere := cteAgesWhere || '
198198 AND (
199199 (' || _ageyoung || ' <= sa.age AND sa.age <= ' || _ageold || ' ) OR
@@ -250,7 +250,7 @@ BEGIN
250250 AND sd.elementtypeid IN (array_to_string(' || _elemtypeids || ' ,' ' ,' ' ))' ;
251251 END IF;
252252
253- IF ageDoContain = false THEN
253+ IF _agedocontain = false THEN
254254 cteAges := cteAges || '
255255 AND NOT (c.calageolder < ' || _ageyoung || ' OR ' || _ageold || ' < c.calageyounger)' ;
256256 ELSE
@@ -409,7 +409,7 @@ BEGIN
409409 IF noTaxa = true AND NOT (_ageold IS NULL AND _ageyoung IS NULL ) THEN
410410 BEGIN
411411 IF _ageold IS NULL THEN
412- _ageold:= 10000000 ;
412+ _ageold := 10000000 ;
413413 END IF;
414414 IF _ageyoung IS NULL THEN
415415 _ageyoung := - 250 ;
@@ -423,8 +423,8 @@ BEGIN
423423 ELSE
424424 cteDsWhere := cteDsWhere || '
425425 AND (
426- NOT (ages.ageyoungest < ' || _ageold || ' OR ages.ageoldest > ' || _ageyoung ' ) OR
427- NOT (ages.agemin < ' || _ageold || ' OR ages.agemax > ' || _ageyoung || ' )
426+ ( ' || _ageyoung || ' <= ages.ageyoungest AND ages. ageoldest <= ' || _ageold || ' ) OR
427+ NOT (ages.maxage < ' || _ageyoung || ' OR ' || _ageold || ' < ages.minage )
428428 )' ;
429429 END IF;
430430 END;
You can’t perform that action at this time.
0 commit comments