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

Fixes issue with double dash "--" inside quotes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrhorvath
Copy link

@mrhorvath mrhorvath commented Jan 9, 2020

https://stackoverflow.com/questions/12469496/ant-sql-insert-statement-fails-on-strings-workaround

Several inserts for ACT ICD9CM ontology include "--" inside of the quote, which ant is handling poorly.

"E831.2 Accident to watercraft causing other injury to occupant of other watercraft -- crew"

The -- is interpreted as the beginning of a comment despite being in quotes and created several errors on insert during the load.

This appears to only apply to ant sql tasks with oracle and may be an issue with the jdbc driver as discussed in the stackoverflow link above.

Setting keepformat to true has eliminated these errors for me. It may be worthwhile examining other sql tasks in ant to see if they would benefit from this setting (it is already included in many of the existing sql tasks).

@mrhorvath mrhorvath force-pushed the bug/oracle_ant_comment_inserts branch from f3ca594 to 40b8300 Compare January 9, 2020 16:56
@jklann
Copy link
Contributor

jklann commented Feb 21, 2022

@mikemendis @reetametta This request looks good to me. Let's discuss if we all feel it is ok to merge.

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