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

BAH-3525 | Add. Configuration Property To Handle Zero date prohibited Error #185

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

rahu1ramesh
Copy link
Contributor

JIRA -> BAH-3525

This PR addresses the "Zero date value prohibited" error configuring OMRS_DB_EXTRA_ARGS to include `&zeroDateTimeBehavior=convertToNull.

During openmrs runtime, OMRS_DB_EXTRA_ARGS sets zeroDateTimeBehavior=convertToNull in JdbcUrl. Upon boot up, openmrs utilizes its own startup script to define the jdbc url. OMRS_DB_EXTRA_ARGS appends any provided parameters to the end of the url.

By default, the connector throws an exception when encountering zero date values, as it aligns with JDBC and SQL standards. This behavior can be adjusted using the zeroDateTimeBehavior configuration property.

@rahu1ramesh rahu1ramesh merged commit 3315376 into master Feb 17, 2024
2 checks passed
@rahu1ramesh rahu1ramesh deleted the BAH-3525 branch February 20, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants