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

This should fix the array-buffer problem by inserting a empty-string … #3546

Merged
merged 4 commits into from
Jan 30, 2021

Conversation

cesarvr
Copy link
Contributor

@cesarvr cesarvr commented Jan 29, 2021

What, How & Why?

Fixing a problem with the way we handle empty array-buffer for fields that are nullable.

This closes #3536

☑️ ToDos

* [ ] 📝 Changelog entry
* [ ] 📝 Compatibility label is updated or copied from previous entry

  • 🚦 Tests
    * [ ] 📝 Public documentation PR created or is not necessary
    * [ ] 💥 Breaking label has been applied or is not necessary

If this PR adds or changes public API's:
* [ ] typescript definitions file is updated
* [ ] jsdoc files updated
* [ ] Chrome debug API is updated if API is available on React Native

…into the DB when an empty ArrayBuffer is provided. Here we are choosing simplicity against a more robust solution which is to get the schema information before acting upon the data. This could be a good candidate to get refactored.
@cesarvr cesarvr requested a review from kraenhansen January 29, 2021 15:12
Copy link
Member

@kraenhansen kraenhansen left a comment

Choose a reason for hiding this comment

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

Looks legit, I just suggest to remove the comments. And remember to add an entry in the changelog (you can use the checkmarks in the description to remember this, instead of striking them 🙂 )

tests/js/array-buffer-tests.js Outdated Show resolved Hide resolved
@cesarvr cesarvr merged commit dc5c77d into master Jan 30, 2021
@cesarvr cesarvr deleted the cesarvr/fix-#3536 branch January 30, 2021 00:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JS: A non-empty ArrayBuffer, BufferView or Buffer is expected.
2 participants