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

Make trailing semicolons in scripts configurable #2559

Merged
merged 1 commit into from
Dec 14, 2023

Commits on Dec 11, 2023

  1. Make trailing semicolons in scripts configurable

    Turns out that MySQL and Oracle simply have differing ideas on what a
    statement in a script should be. Oracle needs the trailing semicolons,
    MySQL throws syntax errors (when using the
    rewriteBatchedStatements=true setting, otherwise it reports a much
    saner "cannot issue select statements with update" type of error
    message.
    
    Added a switch that retains the default behavior but can be flipped
    to allow the error case described in jdbi#2554 to work.
    
    Reported by @IrinaTerlizhenko, thank you for this!
    hgschmie committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    2b1941d View commit details
    Browse the repository at this point in the history