Title: [1131] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake: Rubyforge #22018
: chomp final trailing semicolon for oracle
- Revision
- 1131
- Author
- nicksieger
- Date
- 2008-09-19 08:34:15 -0400 (Fri, 19 Sep 2008)
Log Message
Rubyforge #22018: chomp final trailing semicolon for oracle
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake (1130 => 1131)
--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake 2008-08-29 18:24:56 UTC (rev 1130)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake 2008-09-19 12:34:15 UTC (rev 1131)
@@ -67,7 +67,7 @@
ActiveRecord::Base.establish_connection(abcs["test"])
ActiveRecord::Base.connection.execute('SET foreign_key_checks = 0') if abcs["test"]["adapter"] =~ /mysql/i
IO.readlines("db/#{RAILS_ENV}_structure.sql").join.split(";\n\n").each do |ddl|
- ActiveRecord::Base.connection.execute(ddl)
+ ActiveRecord::Base.connection.execute(ddl.chomp(';'))
end
end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel