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

Add backticks around collation to avoid query error #729

Closed

Conversation

@rfreebern
Copy link
Contributor

@rfreebern rfreebern commented Oct 6, 2014

Encountered the following when running ./bin/storage upgrade, with MySQL 5.1.67:

[2014-10-05 17:59:48] EXCEPTION: (AphrontQueryException) #1064: You have an error in your SQL
syntax; check  the manual that corresponds to your MySQL server version for the right syntax to
use near 'binary' at line 1 at
[<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:308]

The offending queries all contained `...COLLATE binary'. Adding backticks around "binary" solves the error and allows the migrations to run.

@chadlittle
Copy link
Contributor

@chadlittle chadlittle commented Oct 6, 2014

We're going to land a fix with https://secure.phabricator.com/D10641, but thanks for looking into this!

@chadlittle chadlittle closed this Oct 6, 2014
@rfreebern
Copy link
Contributor Author

@rfreebern rfreebern commented Oct 6, 2014

Sure thing. Note that the changes to lines 195 and 196 addressed another error of the same type that D10641 doesn't.

@chadlittle
Copy link
Contributor

@chadlittle chadlittle commented Oct 6, 2014

@bobtrahan
Copy link
Contributor

@bobtrahan bobtrahan commented Oct 6, 2014

Cool, I made https://secure.phabricator.com/D10646.

Thanks for the help!

bobtrahan added a commit that referenced this pull request Oct 6, 2014
…sort

Summary: second bit of #729

Test Plan: this is a weird pull request merge

Reviewers: chad, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D10646
@rfreebern rfreebern deleted the rfreebern:add-backticks-to-collation branch Oct 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants