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

[expo-sqlite] Correct rowsAffected result value on iOS. #9317

Merged
merged 5 commits into from Jul 21, 2020

Conversation

mczernek
Copy link
Contributor

…ive tests to test-suite.

Why

As suggested in issue #3163 we return incorrect value in rowsAffected when executing cascade update/delete. It turned out, that whole rowsAffected logic is flaky.

How

Switchong from sqlite3_total_changes to sqlite3_changes method and removing unnecessary logic.

Test Plan

Added respective tests in test-suite.

@mczernek mczernek marked this pull request as ready for review July 20, 2020 12:17
@github-actions
Copy link
Contributor

Native Component List for this branch is ready

packages/expo-sqlite/CHANGELOG.md Outdated Show resolved Hide resolved
packages/expo-sqlite/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Tomasz Sapeta <1714764+tsapeta@users.noreply.github.com>
@mczernek mczernek changed the title [expo-sqlite] Correct rowsAffected resultvalue on iOS and add respect… [expo-sqlite] Correct rowsAffected result value on iOS. Jul 21, 2020
@mczernek mczernek merged commit ffdce47 into master Jul 21, 2020
@mczernek mczernek deleted the @mczernek/sqlite-rowsAffected branch July 21, 2020 09:48
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.

None yet

2 participants