We have a Rails 3.2.19 application. After upgrading Ruby 1.9.3 to 2.1.5 and Phusion Passenger 3.0.19 to 4.0.57, activerecord generated some incomplete SQL queries and tried to execute against MYSQL server. It was weird.
- ActiveRecord::StatementInvalid (Mysql2::Error: [34816] syntax error: improper query string termination: SELECT
- ActiveRecord::StatementInvalid (Mysql2::Error: [8192] Relation not found: no such relation ": SELECT `
- Mysql2::Error: [32768] Translate error: SQL-ERROR: unable to resolve relation "": SELECT
agents.* FROMagentsWHERE ``.id= 22241082 LIMIT 1 - ActiveRecord::StatementInvalid (Mysql2::Error: [32769] Unknown column: SQL-ERROR: unable to resolve column "agents.: SELECT
agents.* FROMagentsWHEREagents.`
All the above sql statements are invalid. We didn't do any application code change. Can anybody let me know, where things might have gone wrong? I couldn't find any information on internet like this.
Aucun commentaire:
Enregistrer un commentaire