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

Fix INSERT into SQLite with single quote (by escaping single quotes with a quote instead of backslash) #60015

Merged
merged 2 commits into from Feb 19, 2024

Commits on Feb 15, 2024

  1. Add ability to escape quotes in Values format with single quote

    Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
    azat committed Feb 15, 2024
    Copy the full SHA
    bbe38a3 View commit details
    Browse the repository at this point in the history
  2. Fix INSERT into SQLite with single quote

    Previously it leads to syntax error, due to incorrect escaping of single
    quotes for SQLite, "\'" had been used instead of "''"
    
    So set output_format_values_escape_quote_with_quote=true for SQLite to
    fix this.
    
    v2: prepare modified Context for writing on storage creation
    Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
    azat committed Feb 15, 2024
    Copy the full SHA
    f10fc95 View commit details
    Browse the repository at this point in the history