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

Refactor quoting of binary data to not be based on the column type #15486

Merged
merged 1 commit into from
Jun 3, 2014

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Jun 3, 2014

No description provided.

@value
end

def unpack
Copy link
Member

Choose a reason for hiding this comment

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

hex or similar, maybe?

Copy link
Member

Choose a reason for hiding this comment

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

👍 we could add # hex string (high nibble first) after the unpack call. Don't think readers know the flags inside out.

Copy link
Member

Choose a reason for hiding this comment

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

I think renaming the method is probably sufficiently descriptive.. the nibble order is the ordinary/sane one: I suspect it's more likely to cause people hesitation to mention it at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(I had no clue what that flag was)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@sgrif
Copy link
Contributor Author

sgrif commented Jun 3, 2014

@matthewd Any further feedback on this?

matthewd added a commit that referenced this pull request Jun 3, 2014
Refactor quoting of binary data to not be based on the column type
@matthewd matthewd merged commit 7a25444 into rails:master Jun 3, 2014
@sgrif sgrif deleted the sg-binary-quoting branch June 3, 2014 19:06
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

3 participants