Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BHBC-1303: Update taxon query to fetch additional taxonomic name fields #474

Merged
merged 3 commits into from
Aug 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions api/src/queries/codes/code-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ export const getTaxonsSQL = (): SQLStatement =>
SQL`
SELECT
wldtaxonomic_units_id as id,
CASE
WHEN english_name IS NULL THEN unit_name2
ELSE CONCAT(english_name, ' - ', unit_name2)
END as name
CONCAT_WS(' - ', english_name, CONCAT_WS(' ', unit_name1, unit_name2, unit_name3)) as name
FROM
wldtaxonomic_units
WHERE
Expand Down