diff options
author | Jeff Lawson <jdl@cogentlogic.com> | 2010-08-01 11:41:03 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-17 13:15:58 -0700 |
commit | 7ce1539934b67e536446f7323c7848fdd6ba68e3 (patch) | |
tree | e751d515187b1bd78ecfa1b77ba95c6f81f11017 /activerecord/test/schema | |
parent | 137e4e759a7360f6277ec469d165894bf96dbabf (diff) | |
download | rails-7ce1539934b67e536446f7323c7848fdd6ba68e3.tar.gz rails-7ce1539934b67e536446f7323c7848fdd6ba68e3.tar.bz2 rails-7ce1539934b67e536446f7323c7848fdd6ba68e3.zip |
Bug Fix -- clean up connection after stored procedure [#3151 state:resolved]
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/mysql_specific_schema.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/schema/mysql_specific_schema.rb b/activerecord/test/schema/mysql_specific_schema.rb index c78d99f4af..30e1c5a167 100644 --- a/activerecord/test/schema/mysql_specific_schema.rb +++ b/activerecord/test/schema/mysql_specific_schema.rb @@ -21,4 +21,15 @@ BEGIN END SQL + ActiveRecord::Base.connection.execute <<-SQL +DROP PROCEDURE IF EXISTS topics; +SQL + + ActiveRecord::Base.connection.execute <<-SQL +CREATE PROCEDURE topics() SQL SECURITY INVOKER +BEGIN + select * from topics limit 1; +END +SQL + end |