Frederick Cheung wrote:
> when connecting via activerecord you're using a different client so
> you get to skip the delimiter stuff.
> 
> Fred

Lovely. I commented out the DELIMITER calls, and sure enough, it works:

  ActiveRecord::Base.connection.execute('DROP FUNCTION IF EXISTS 
`coverage`;')
  # ActiveRecord::Base.connection.execute('DELIMITER $$')
  ActiveRecord::Base.connection.execute(sql_body)
  # ActiveRecord::Base.connection.execute('DELIMITER ;')

I look forward to the day when I know epsilon more than someone else on 
this list and can help them as much as you've helped me.

Best,

- ff
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to