Skip to content

Switch to using sqlite3_prepare_v2#134

Merged
JohnMcPMS merged 1 commit intomicrosoft:masterfrom
JohnMcPMS:prepv2
May 13, 2020
Merged

Switch to using sqlite3_prepare_v2#134
JohnMcPMS merged 1 commit intomicrosoft:masterfrom
JohnMcPMS:prepv2

Conversation

@JohnMcPMS
Copy link
Member

Change

v3 is not available on Windows 10 (16299), and we don't really need or use the persistent statements in a meaningful way. Fall back to v2 and remove the persistent statement support.

Validation

Regression tests and manual use against production environment.

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner May 12, 2020 23:45
Copy link
Contributor

@yao-msft yao-msft left a comment

Choose a reason for hiding this comment

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

:shipit:

Statement StatementBuilder::Prepare(Connection& connection, bool persistent)
Statement StatementBuilder::Prepare(Connection& connection)
{
Statement result = Statement::Create(connection, m_stream.str(), persistent);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we instead do if > 16299
i suspect most machines will be > 16299

@JohnMcPMS JohnMcPMS merged commit 695de19 into microsoft:master May 13, 2020
@JohnMcPMS JohnMcPMS deleted the prepv2 branch May 13, 2020 01:07
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.

3 participants