Skip to content

Commit 293f10d

Browse files
committed
Fixed two SQL queries with typos
The speleothem call was missing the plural "s", and the 1.5 datasets was missing double quoates around the new name.
1 parent dc57ebb commit 293f10d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

v1.5/helpers/datasets/datasetbyid.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SELECT
3131
dst.datasettype,
3232
dts.notes as "datasetnotes",
3333
cstdb.databasename,
34-
MAX(doi.doi) as 'doi'
34+
MAX(doi.doi) as "doi"
3535
FROM
3636
ndb.datasets AS dts LEFT OUTER JOIN
3737
da.vbestdatasetages AS dsa ON dsa.datasetid = dts.datasetid LEFT OUTER JOIN

v2.0/helpers/speleothems/speleothemsbycuid.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jsonb_build_object( 'siteid', sp.siteid,
99
'entrancedistanceunits', sp.entrancedistanceunits,
1010
'speleothemtypeid', sp.speleothemtypeid) AS speleothem -- create a join to extract the type rather than just the id
1111
FROM ndb.speleothems sp
12-
LEFT JOIN ndb.speleothemcollectionunit scu
12+
LEFT JOIN ndb.speleothemcollectionunits scu
1313
ON sp.entityid = scu.entityid
1414
WHERE scu.collectionunitid IN ($1:csv);

0 commit comments

Comments
 (0)