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

"You have an error in your SQL syntax" - missing "`" keys. #5

Closed
Apiff opened this issue Jun 14, 2012 · 2 comments
Closed

"You have an error in your SQL syntax" - missing "`" keys. #5

Apiff opened this issue Jun 14, 2012 · 2 comments

Comments

@Apiff
Copy link

Apiff commented Jun 14, 2012

Hi i found a syntax error in "app/controllers/database_connections_controller.rb".

I got this error:
"Mysql2::Error: 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 'ASC LIMIT 50 OFFSET 0' at line 1: SELECT database_connections.* FROM database_connections ORDER BY database ASC LIMIT 50 OFFSET 0"

It's fixed if i modify this line:
@database_connections = DatabaseConnection.order("database ASC").page(params[:page])

To this:
@database_connections = DatabaseConnection.order("database ASC").page(params[:page])

@robinbortlik
Copy link
Owner

Hi Apiff,
thanks. I will look on it early.

@robinbortlik
Copy link
Owner

Hi @Apiff , first of all, sorry that fix this issue took so long, but I really forgot on this. @josin once more thanks

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

No branches or pull requests

2 participants