Forum: Ruby on Rails RE: Parsing a SQL file directly into activerecord::executeme

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brian C. (Guest)
on 2006-04-04 22:12
(Received via mailing list)
In an effort to not be a vamp.  (Thanks Amy) Here is the error message
I'm getting.

Mysql::Error: #42000You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near '¡É¨[©´#Globals (ActiveRecord::StatementInvalid) SET
@rightnow = current_timestamp;

It appears that Active Record is parsing each statement for validity and
does not like comments.  (And maybe something else here..)

Is there a way to force it to simply issue the command and quit worrying
about sytax?

I've looked through the Rails source a bit..  Can't seem to really find
where it is actually doing a syntax check.  Maybe the error is actually
from MYSQL?


Brian C.
This topic is locked and can not be replied to.