OHDSI / OHDSI/Characterization
Use `ISNULL` in place of `IFNULL` in queries
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 3
- Forks
- 6
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 4
Description
The IFNULL function is not fully supported across all RDBMS platforms and as a result it will fail on those systems that don't support it (i.e. SQL Server). Replacing with ISNULL should fix it. Here are the queries where I found IFNULL:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with inst/sql/sql_server/RiskFactorBinaryExtraction.sql around lines 35-40 and inst/sql/sql_server/RiskFactorContinuousExtraction.sql around lines 37-59. Review the listed queries for IFNULL usage, make the requested SQL Server compatibility change, and verify that both files no longer contain the unsupported function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 82/100