Skip to content

Conversation

@yegayazilim
Copy link
Contributor

No description provided.

write_lobs checks to see whether the value is blank before executing the SQL statement. If the LOB is binary blank? call causes "invalid byte sequence in UTF-8" exception. We can instead use unless value, which is applicable both to strings and binary data.
ActiveRecord persists empty Array ([]) and Hash ({}) as nil. So, after serializing the value need to check again.
Save non UTF-8 string in binary column
Fix write_lobs "invalid byte sequence in UTF-8"
@yahonda yahonda merged commit c184d57 into rsim:master Jan 1, 2021
@yahonda
Copy link
Collaborator

yahonda commented Jan 1, 2021

Thanks for providing a pull request with spec.

yahonda pushed a commit to yahonda/oracle-enhanced that referenced this pull request Jan 12, 2021
* Fix write_lobs "invalid byte sequence in UTF-8"

write_lobs checks to see whether the value is blank before executing the SQL statement. If the LOB is binary blank? call causes "invalid byte sequence in UTF-8" exception. We can instead use unless value, which is applicable both to strings and binary data.

* check serialized columns to be nil

ActiveRecord persists empty Array ([]) and Hash ({}) as nil. So, after serializing the value need to check again.

* Save non UTF-8 string in binary column

* Fix layout offense

* Fix space offenses

* copy test string in order to force encoding

* Use unary plus to unfreeze
yahonda pushed a commit to yahonda/oracle-enhanced that referenced this pull request Jan 12, 2021
* Fix write_lobs "invalid byte sequence in UTF-8"

write_lobs checks to see whether the value is blank before executing the SQL statement. If the LOB is binary blank? call causes "invalid byte sequence in UTF-8" exception. We can instead use unless value, which is applicable both to strings and binary data.

* check serialized columns to be nil

ActiveRecord persists empty Array ([]) and Hash ({}) as nil. So, after serializing the value need to check again.

* Save non UTF-8 string in binary column

* Fix layout offense

* Fix space offenses

* copy test string in order to force encoding

* Use unary plus to unfreeze
yahonda added a commit that referenced this pull request Jan 12, 2021
Fix write_lobs Invalid byte sequence in UTF-8 (#2097)
yahonda added a commit that referenced this pull request Jan 12, 2021
Fix write_lobs Invalid byte sequence in UTF-8 (#2097)
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.

2 participants