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

Implement savepoint API for Microsoft.Data.Sqlite #22869

Merged
1 commit merged into from
Oct 11, 2020
Merged

Implement savepoint API for Microsoft.Data.Sqlite #22869

1 commit merged into from
Oct 11, 2020

Conversation

roji
Copy link
Member

@roji roji commented Oct 2, 2020

Closes #20228

Rebases #22273 against main

Copy link
Contributor

@bricelam bricelam left a comment

Choose a reason for hiding this comment

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

From @bricelam on August 27, 2020 9:15

LGTM

Copied from original PR: #22273

throw new InvalidOperationException(Resources.TransactionCompleted);
}

_connection.ExecuteNonQuery("SAVEPOINT " + savepointName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Delimit and escape the identifier. Terminate statements.

SAVEPOINT "The ""SaveChanges"" Savepoint";

Copy link
Member Author

Choose a reason for hiding this comment

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

Done (though curious why terminate with semilcolon)

Copy link
Contributor

Choose a reason for hiding this comment

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

IDK, statements just feel incomplete without a semicolon. 🤷‍♂️ But yeah, probably a waste of memory and CPU...

src/Microsoft.Data.Sqlite.Core/SqliteTransaction.cs Outdated Show resolved Hide resolved
src/Microsoft.Data.Sqlite.Core/SqliteTransaction.cs Outdated Show resolved Hide resolved
@roji
Copy link
Member Author

roji commented Oct 3, 2020

Sorry, should have just reused the old PR and addressed the comments.

@ghost
Copy link

ghost commented Oct 11, 2020

Hello @roji!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 4127318 into main Oct 11, 2020
@ghost ghost deleted the SqliteSavepoints branch October 11, 2020 08:16
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sqlite: add transaction savepoint API
2 participants