Displaying 1 result from an estimated 1 matches for "bbeg".
Did you mean:
beg
2010 Apr 21
12
Using AR.connection.execute(sql) -- messing with my string?
...)
calls @connection(query), but I lose the thread after that. Here''s the
function (some lines elided for brevity):
====
sql = <<SQL
-- COVERAGE(astart, aend, bstart, bend)
--
DELIMITER $$
DROP FUNCTION IF EXISTS `coverage`$$
CREATE FUNCTION `coverage`(abeg DATETIME, aend DATETIME, bbeg DATETIME,
bend DATETIME)
RETURNS FLOAT DETERMINISTIC
BEGIN
<snip>
END;
$$
DELIMITER ;
SQL
ActiveRecord::Base.establish_connection
ActiveRecord::Base.connection.execute(sql)
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the...