aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v1/db_drop.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2009-08-29 23:55:44 -0400
committerRalph Amissah <ralph@amissah.com>2009-08-29 23:56:38 -0400
commit1c07669d3798c1313612360719b8ca1cb559be62 (patch)
tree68adddab2f992793f2e8999fc4b18d6f7ec84f7b /lib/sisu/v1/db_drop.rb
parentsha256 for 0.71.3 (diff)
sql, fix, different solutions for postgresql and sqlite to populate database using ruby-dbisisu_0.71.4
Diffstat (limited to 'lib/sisu/v1/db_drop.rb')
-rw-r--r--lib/sisu/v1/db_drop.rb9
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