Skip to content

Commit

Permalink
Extend GROUP BY to avoid crash (fixes #235)
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Sep 21, 2024
1 parent 8d343ab commit 9d924dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/larkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ const { Client, Pool } = require("pg");
LEFT JOIN macrostrat.col_refs ON col_refs.ref_id = refs.id
LEFT JOIN macrostrat.units_sections ON units_sections.col_id = col_refs.col_id
WHERE refs.id = ANY (:ref_id)
GROUP BY refs.id`,
GROUP BY refs.id, pub_year, author, ref, doi, url`,
{ ref_id: ref_ids },
function (error, data) {
var refs = {};
Expand Down

0 comments on commit 9d924dd

Please sign in to comment.