Skip to content

Conversation

@yahonda
Copy link
Collaborator

@yahonda yahonda commented Jan 12, 2021

This pull request backports #2097 to release60 branch.

* 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 yahonda merged commit edbacb8 into rsim:release60 Jan 12, 2021
@yahonda yahonda deleted the backport_2097_to_release60 branch February 23, 2022 14:09
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