Skip to content

[WIP] gh-81040: use sqlite3_stmt_readonly() to detect DML statements - #24492

Closed
erlend-aasland wants to merge 15 commits into
python:mainfrom
erlend-aasland:bpo-36859
Closed

[WIP] gh-81040: use sqlite3_stmt_readonly() to detect DML statements#24492
erlend-aasland wants to merge 15 commits into
python:mainfrom
erlend-aasland:bpo-36859

Conversation

@erlend-aasland

@erlend-aaslanderlend-aasland commented Feb 9, 2021

Copy link
Copy Markdown
Contributor

Fixes#81040

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

Cherry-picked from #13216 and rebased onto master.

cc. @berkerpeksag@coleifer@serhiy-storchaka

@erlend-aasland
erlend-aasland marked this pull request as draft March 2, 2021 09:15
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label Apr 2, 2021
@erlend-aaslanderlend-aasland changed the title bpo-36859: use sqlite3_stmt_readonly() to detect DML statements[WIP] bpo-36859: use sqlite3_stmt_readonly() to detect DML statementsMay 18, 2021
@erlend-aasland
erlend-aaslandforce-pushed the bpo-36859 branch 3 times, most recently from ba8d1e6 to dce7adaCompareJune 5, 2021 21:27

@MaxwellDupreMaxwellDupre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ran 18 tests in 0.481s
OK
Other Sqlite tests also passed. Looks ok.
Need to add to Docs, not just NEWS otherwise users will not be aware.

@erlend-aaslanderlend-aasland changed the title [WIP] bpo-36859: use sqlite3_stmt_readonly() to detect DML statements[WIP] gh-81040: use sqlite3_stmt_readonly() to detect DML statementsApr 10, 2022
@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

I'm not sure this is the correct way to address to the problems in the linked issue. Closing.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core reviewstaleStale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sqlite3 dml statement detection does not account for CTEs

6 participants

@erlend-aasland@MaxwellDupre@the-knights-who-say-ni@bedevere-bot@coleifer@berkerpeksag