search for: abeg

Displaying 1 result from an estimated 1 matches for "abeg".

Did you mean: abe
2010 Apr 21
12
Using AR.connection.execute(sql) -- messing with my string?
...ql_adapter''s execute() 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 beca...