Active Record Invalid Statement

Can anyone help identify the cause of the exception below?

Mysql::Error: Lost connection to MySQL server during query: SELECT *
FROM pages WHERE (pages.url =’)
LIMIT 1 (ActiveRecord::StatementInvalid)

I assume this is a problem related to the URL? I am thinking it might
be the ‘-’ in the URL.

I am processing a collection of URLs, all work, except for this one.

Any help would be appreciated.




You’ll have to have a look at your SQL server’s logs, I would imagine.
isn’t a problem in any Ruby code so far as i can tell.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs