RE: Parsing a SQL file directly into activerecord::executeme

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?

B


Brian C.