Skip to content

Commit

Permalink
Join method uses empty string by default, so remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 16, 2011
1 parent b96aaf8 commit 97ca635
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -389,11 +389,11 @@ def structure_dump #:nodoc:
sql = "SHOW TABLES" sql = "SHOW TABLES"
end end


select_all(sql).map do |table| select_all(sql).map { |table|
table.delete('Table_type') table.delete('Table_type')
sql = "SHOW CREATE TABLE #{quote_table_name(table.to_a.first.last)}" sql = "SHOW CREATE TABLE #{quote_table_name(table.to_a.first.last)}"
exec_without_stmt(sql).first['Create Table'] + ";\n\n" exec_without_stmt(sql).first['Create Table'] + ";\n\n"
end.join("") }.join
end end


# Drops the database specified on the +name+ attribute # Drops the database specified on the +name+ attribute
Expand Down

0 comments on commit 97ca635

Please sign in to comment.