From 2f97cf3f9e13280da9d161d39b8d9b0d66555307 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 17 Dec 2008 20:57:46 -0500 Subject: 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 --- CHANGELOG | 3 +++ lib/sisu/v0/db_dbi.rb | 20 ++++++++++---------- lib/sisu/v0/db_import.rb | 20 ++++++++++++++++++++ lib/sisu/v0/db_load_tuple.rb | 4 ++++ lib/sisu/v0/db_remove.rb | 3 ++- lib/sisu/v0/db_select.rb | 16 ++++++++++------ lib/sisu/v0/dbi.rb | 20 ++++++++++++++++---- lib/sisu/v0/urls.rb | 4 ++-- 8 files changed, 67 insertions(+), 23 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 9cb6caf1..7b1b22dd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -17,6 +17,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.3.orig.tar.gz * html and css, cosmetic changes (and the closing of a tag) + * sqlite module remains broken, inconsistent ruby dbi api - made explicit + when run + %% sisu_0.70.2.orig.tar.gz (2008-12-16:50/2) http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.2.orig.tar.gz c4ec17c3f50b629a33afcb3d343e111172bf56b656fa892d82936f86dfde281a 1545482 sisu_0.70.2.orig.tar.gz diff --git a/lib/sisu/v0/db_dbi.rb b/lib/sisu/v0/db_dbi.rb index 3a54fd46..4256efb9 100644 --- a/lib/sisu/v0/db_dbi.rb +++ b/lib/sisu/v0/db_dbi.rb @@ -70,25 +70,25 @@ module SiSU_DB_DBI require "#{SiSU_lib}/db_import" class Column_size < SiSU_DB_columns::Column_size end - class Test < SiSU_DB_tests::Test + class Test < SiSU_DB_tests::Test #% db_tests.rb end - class Create @fn[:xhtml], #'B (Docbook XML)'=>@fn[:docbook], 'D[iu] (DBI import/update postgresql)'=>'dbi psql', - 'd[iu] (DBI import/update sqlite)'=>'dbi sqlite', + 'd[iu] (DBI import/update sqlite)'=>'dbi sqlite3', 'e (Plain-text (endnotes))'=>@fn[:plain], 'E (Plain-text (endnotes) dos)'=>@fn[:plain], 'h (HTML segmented)'=>@fn[:toc], @@ -221,7 +221,7 @@ module SiSU_urls end if x=~/^d/ \ and @opt.cmd =~/d/ - tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x} DBI sqlite","sqlite #{@env.path.output}/sisu_sqlite.db", "#{y}") + tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x} DBI sqlite","sqlite3 #{@env.path.output}/sisu_sqlite.db", "#{y}") tell.result unless @opt.cmd =~/q/ @opt.cmd.gsub!(/d[iu]/,'') end -- cgit v1.2.3