Skip to content

Commit 2ea4742

Browse files
Jonathan K NelsonJonathan K Nelson
authored andcommitted
make chronid variable dynamic
1 parent 3392959 commit 2ea4742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function/da/chronologybyid.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AS $function$
3737
LEFT JOIN ndb.chroncontroltypes AS ccrt ON ccr.chroncontroltypeid = ccrt.chroncontroltypeid
3838
LEFT JOIN ndb.datasets AS ds ON ds.collectionunitid = chr.collectionunitid
3939
LEFT JOIN ndb.datasettypes AS dst ON dst.datasettypeid = ds.datasettypeid
40-
WHERE chr.chronologyid = 123
40+
WHERE chr.chronologyid = _chronid
4141
GROUP BY chr.isdefault,
4242
chr.chronologyname,
4343
aty.agetype,

0 commit comments

Comments
 (0)