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

bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 #20530

Merged
merged 2 commits into from
Jan 4, 2021

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented May 30, 2020

Ref. SQLite 3.7.15 changelog:
"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."

https://bugs.python.org/issue40810

Automerge-Triggered-By: GH:gvanrossum

@erlend-aasland erlend-aasland changed the title bpo-40810: Require SQLite 3.7.15 bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 May 30, 2020
Copy link

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@erlend-aasland
Copy link
Contributor Author

@vstinner Would you mind taking a look at this?

@vstinner
Copy link
Member

Nope. I don't know the SQLite module.

@erlend-aasland
Copy link
Contributor Author

@serhiy-storchaka, would you mind reviewing this? Short description of the PR:

Ref. SQLite 3.7.15 changelog:
"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."

The PR adapts the trace callback test to expect this bug for SQLite versions prior to 3.7.15.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@erlend-aasland
Copy link
Contributor Author

LGTM.

Thanks!

@gvanrossum
Copy link
Member

We can backport to 3.9 and 3.8 -- earlier is not possible due to maintenance status.

@miss-islington miss-islington merged commit f7f0ed5 into python:master Jan 4, 2021
@miss-islington
Copy link
Contributor

Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@erlend-aasland erlend-aasland deleted the fix-issue-40810 branch January 4, 2021 23:16
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 4, 2021
…nGH-20530)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed5)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Jan 4, 2021
@bedevere-bot
Copy link

GH-24104 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 4, 2021
…nGH-20530)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed5)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
@bedevere-bot
Copy link

GH-24105 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Jan 4, 2021
)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed5)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
miss-islington added a commit that referenced this pull request Jan 4, 2021
)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed5)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…nGH-20530)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.html#version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
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.

7 participants