aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/db_remove.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2009-07-01 13:45:51 -0400
committerRalph Amissah <ralph@amissah.com>2009-07-01 13:45:51 -0400
commit0cdd579c809f3041df8842adb4d6f74d9cabd457 (patch)
tree36c902c33d24ea141653658b14d42cf50e7412a3 /lib/sisu/v0/db_remove.rb
parentminor fixes and touches (diff)
db dbi, interfaces to sqlite and pgsql, fixes, pass individual sql statements
Diffstat (limited to 'lib/sisu/v0/db_remove.rb')
-rw-r--r--lib/sisu/v0/db_remove.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sisu/v0/db_remove.rb b/lib/sisu/v0/db_remove.rb
index b210a3ca..bde5c891 100644
--- a/lib/sisu/v0/db_remove.rb
+++ b/lib/sisu/v0/db_remove.rb
@@ -22,7 +22,7 @@
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
@@ -90,8 +90,9 @@ module SiSU_DB_remove
end
@conn.commit if driver_sqlite3
else
- s=sql_entry.join(' ')
- @conn.execute(s)
+ sql_entry.each do |s|
+ @conn.execute(s)
+ end
end
if @opt.cmd =~/M/
@file.puts sql_entry if @opt.cmd =~/M/