diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-12-17 20:57:46 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-12-20 22:54:44 -0500 |
commit | 2f97cf3f9e13280da9d161d39b8d9b0d66555307 (patch) | |
tree | 07ee35d65bb4d79fc69ccbc7595c08e8635928be /lib/sisu/v0/db_load_tuple.rb | |
parent | html & css cosmetic changes (index & concordance), run "sisu -CC"; changelog (diff) |
SiSU's sqlite module still broken for the time being: inconsistent ruby dbi api
for sqlite3, (unable to begin and commit transaction) provide explicit message
problem noted already in v.0.66.2 (2008-04) and last in v.0.66.3 (2008-05)
module (& rb dbi) apparently worked at end 2007 (v.0.62.4) and start of 2008
(v.0.64.0) ... (did not expect broken state to last, sorry)
include maintenance mode info with -M flag
Diffstat (limited to 'lib/sisu/v0/db_load_tuple.rb')
-rw-r--r-- | lib/sisu/v0/db_load_tuple.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sisu/v0/db_load_tuple.rb b/lib/sisu/v0/db_load_tuple.rb index aefa10c4..512d5933 100644 --- a/lib/sisu/v0/db_load_tuple.rb +++ b/lib/sisu/v0/db_load_tuple.rb @@ -85,6 +85,10 @@ module SiSU_DB_tuple "INSERT INTO documents (lid, metadata_tid, lev, clean, body, ocn, ocnd, ocns, seg, lev1, lev2, lev3, lev4, lev5, lev6, digest_clean, digest_all) VALUES (#{@col[:lid]}, #{@col[:tid]}, #{@col[:lev]}, '#{@col[:plaintext]}', '#{@col[:body]}', '#{@col[:ocn]}', '#{@col[:ocnd]}', '#{@col[:ocns]}', '#{@col[:seg]}', '#{@col[:lv1]}', '#{@col[:lv2]}', '#{@col[:lv3]}', '#{@col[:lv4]}', '#{@col[:lv5]}', '#{@col[:lv6]}', '#{@col[:digest_clean]}', '#{@col[:digest_all]}');" end if @opt.cmd =~/M/ + if @opt.cmd =~/V/ + puts @file.inspect + puts sql_entry + end @file.puts sql_entry else @conn.execute(sql_entry) end |