When I change the Delimeter from the mysql console or MySQL Workbench, I don't get any errors, but when I paste the same code into ruby ββon rails, I get an error
mysql> DELIMITER $$ mysql>
does not give errors.
but
ActiveRecord::Base.connection.execute(%Q{ DELIMITER $$ })
gives:
ActiveRecord::StatementInvalid: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$' at line 1:
source share