diff --git a/History.txt b/History.txt index 4d6ca8e4d..12778e897 100644 --- a/History.txt +++ b/History.txt @@ -1,4 +1,4 @@ -== 1.1.8 2008-09-?? +== 1.1.8 2008-10-10 * Bug fixes: * Fixed storing of serialized LOB columns @@ -7,6 +7,8 @@ * Sequence creation for tables with non-default primary key in create_table block * Do count distinct workaround only when composite_primary_keys gem is used (otherwise count distinct did not work with ActiveRecord 2.1.1) + * Fixed rake db:test:clone_structure task + (see http://rsim.lighthouseapp.com/projects/11468/tickets/11-rake-dbtestclone_structure-fails-in-117) == 1.1.7 2008-08-20 diff --git a/lib/active_record/connection_adapters/oracle_enhanced.rake b/lib/active_record/connection_adapters/oracle_enhanced.rake index c1a78bcee..e79256e21 100644 --- a/lib/active_record/connection_adapters/oracle_enhanced.rake +++ b/lib/active_record/connection_adapters/oracle_enhanced.rake @@ -27,16 +27,16 @@ namespace :db do redefine_task :clone_structure => [ "db:structure:dump", "db:test:purge" ] do abcs = ActiveRecord::Base.configurations ActiveRecord::Base.establish_connection(:test) - IO.readlines("db/#{RAILS_ENV}_structure.sql").join.split(";\n\n").each do |ddl| - ActiveRecord::Base.connection.execute(ddl) + IO.readlines("db/#{RAILS_ENV}_structure.sql").join.split("\n\n").each do |ddl| + ActiveRecord::Base.connection.execute(ddl.chop) end end redefine_task :purge => :environment do abcs = ActiveRecord::Base.configurations ActiveRecord::Base.establish_connection(:test) - ActiveRecord::Base.connection.structure_drop.split(";\n\n").each do |ddl| - ActiveRecord::Base.connection.execute(ddl) + ActiveRecord::Base.connection.structure_drop.split("\n\n").each do |ddl| + ActiveRecord::Base.connection.execute(ddl.chop) end end