diff options
author | Ralph Amissah <ralph@amissah.com> | 2009-08-29 23:57:10 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2009-08-29 23:57:10 -0400 |
commit | 5b3b646fb31df719ab33cf43974031bfb20f805e (patch) | |
tree | 9200aac499e2ded94b4c3d8c9e22d65bdd7096f1 /lib/sisu/v1/db_drop.rb | |
parent | debian/changelog sisu (0.71.3-1) unstable; urgency=low; standards version 3.8.3 (diff) | |
parent | sql, fix, different solutions for postgresql and sqlite to populate database ... (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v1/db_drop.rb')
-rw-r--r-- | lib/sisu/v1/db_drop.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sisu/v1/db_drop.rb b/lib/sisu/v1/db_drop.rb index bed179b7..258b31c1 100644 --- a/lib/sisu/v1/db_drop.rb +++ b/lib/sisu/v1/db_drop.rb @@ -95,7 +95,9 @@ module SiSU_DB_drop File.unlink(@db_info.sqlite.db) end else - @conn.do(@drop_table.join('')) + @drop_table.each do |d| + @conn.execute(d) + end end rescue case @sql_type @@ -105,7 +107,10 @@ module SiSU_DB_drop if ans and File.exist?(@db_info.sqlite.db); File.unlink(@db_info.sqlite.db) end else - @conn.do(@drop_table.join('')) + @drop_table.each do |d| + @conn.execute(d) + end + #@conn.do(@drop_table.join('')) end ensure #commit |