Skip to content

Conversation

coffeegoddd
Copy link
Contributor

No description provided.

@coffeegoddd coffeegoddd changed the base branch from master to db/utc-timestamp September 3, 2020 23:15
@coffeegoddd coffeegoddd requested review from zachmu and Hydrocharged and removed request for zachmu September 4, 2020 01:20
@coffeegoddd coffeegoddd marked this pull request as ready for review September 4, 2020 01:20
Comment on lines +1310 to +1314
s, ok := CollationToMySQLVals[c]
if !ok {
return Y
}
return s.IsDefault
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this be

if c == Collation_Default {
  return Y
}
return N

instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

leaving as is

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

Not quite what mysql does, see comments

},
{
sql.Collation_utf8_general_ci.String(),
"utf8mb3",
Copy link
Member

Choose a reason for hiding this comment

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

mysql reports this as "utf8"

Copy link
Contributor

Choose a reason for hiding this comment

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

Darn it Zach, utf8mb3 and utf8 are aliases. utf8 is deprecated so we're explicit in using utf8mb3 if you pass in utf8.

@coffeegoddd coffeegoddd merged commit 09ad4af into db/utc-timestamp Sep 4, 2020
@coffeegoddd coffeegoddd deleted the db/fix-collations branch September 4, 2020 20:00
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.

3 participants