- select count(party_id) from parties where upper(email) = upper(:email) and party_id <> :user_id
+ select count(party_id) from parties where email = lower(:email) and party_id <> :user_id
Index: openacs-4/packages/acs-tcl/tcl/00-database-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/00-database-procs.tcl,v
diff -u -N -r1.10 -r1.11
--- openacs-4/packages/acs-tcl/tcl/00-database-procs.tcl 22 Feb 2002 19:00:58 -0000 1.10
+++ openacs-4/packages/acs-tcl/tcl/00-database-procs.tcl 9 Mar 2002 02:00:02 -0000 1.11
@@ -21,11 +21,11 @@
}
ad_proc db_package_supports_rdbms_p { db_type_list } {
- Returns 1 if db_type_list is empty (needs no database support) or
- contains the current RDBMS type. The list is typically built from
- the XML database-support node in a packages .info file.
+ Returns 1 if db_type_list contains the current RDMBS type. A package
+ intended to run with a given RDBMS must note this in it's package info
+ file regardless of whether or not it actually uses the database.
} {
- if { [llength $db_type_list] == 0 || [lsearch $db_type_list [db_type]] != -1 } {
+ if { [lsearch $db_type_list [db_type]] != -1 } {
return 1
}
Index: openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl,v
diff -u -N -r1.6 -r1.7
--- openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl 18 Feb 2002 22:00:17 -0000 1.6
+++ openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl 9 Mar 2002 02:00:02 -0000 1.7
@@ -25,7 +25,7 @@
ad_proc -private cc_lookup_email_user { email } {
return [db_string user_select {
- select user_id from cc_users where upper(email) = upper(:email)
+ select user_id from cc_users where email = lower(:email)
} -default ""]
}
Index: openacs-4/packages/acs-tcl/tcl/defs-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/defs-procs.tcl,v
diff -u -N -r1.8 -r1.9
--- openacs-4/packages/acs-tcl/tcl/defs-procs.tcl 22 Jan 2002 20:08:00 -0000 1.8
+++ openacs-4/packages/acs-tcl/tcl/defs-procs.tcl 9 Mar 2002 02:00:02 -0000 1.9
@@ -568,7 +568,6 @@
return
}
if {[info exists set]} {
- ns_log Notice "Caching $parameter_name for $package_id to $set"
nsv_set "ad_param_$package_id" $parameter_name $set
return $set
} elseif { [nsv_exists ad_param_$package_id $parameter_name] } {
Index: openacs-4/packages/acs-tcl/tcl/deprecated-utilities-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/Attic/deprecated-utilities-procs.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/acs-tcl/tcl/deprecated-utilities-procs.tcl 13 Mar 2001 22:59:26 -0000 1.1
+++ openacs-4/packages/acs-tcl/tcl/deprecated-utilities-procs.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -29,7 +29,7 @@
# and you will find the Tcl var $n_rows set
# You can also use this in a multi-row loop
-# set selection [ns_db select $db "select *,upper(email) from mailing_list order by upper(email)"]
+# set selection [ns_db select $db "select *,email from mailing_list order by email"]
# while { [ns_db getrow $db $selection] } {
# set_variables_after_query
# ... your code here ...
Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.xql,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/acs-tcl/tcl/utilities-procs.xql 20 Jan 2002 21:42:55 -0000 1.3
+++ openacs-4/packages/acs-tcl/tcl/utilities-procs.xql 9 Mar 2002 02:00:02 -0000 1.4
@@ -30,7 +30,7 @@
from dual
where not exists (select 1
from parties
- where upper(email) = upper(:email))
+ where email = lower(:email))
Index: openacs-4/packages/acs-templating/acs-templating.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/acs-templating.info,v
diff -u -N -r1.6 -r1.7
--- openacs-4/packages/acs-templating/acs-templating.info 20 Feb 2002 21:07:13 -0000 1.6
+++ openacs-4/packages/acs-templating/acs-templating.info 9 Mar 2002 02:00:02 -0000 1.7
@@ -324,8 +324,8 @@
-
-
+
+
Index: openacs-4/packages/acs-templating/resources/messages/datasources.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/resources/messages/datasources.adp,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/acs-templating/resources/messages/datasources.adp 13 Mar 2001 22:59:27 -0000 1.1
+++ openacs-4/packages/acs-templating/resources/messages/datasources.adp 9 Mar 2002 02:00:02 -0000 1.2
@@ -1,4 +1,4 @@
-Datasource for @code_stub@.acs
+Datasource for @code_stub@
Data sources for @code_stub@.acs
Index: openacs-4/packages/acs-templating/tcl/filter-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/filter-procs.tcl,v
diff -u -N -r1.4 -r1.5
--- openacs-4/packages/acs-templating/tcl/filter-procs.tcl 5 Sep 2001 05:17:19 -0000 1.4
+++ openacs-4/packages/acs-templating/tcl/filter-procs.tcl 9 Mar 2002 02:00:02 -0000 1.5
@@ -9,83 +9,18 @@
# License. Full text of the license is available from the GNU Project:
# http://www.fsf.org/copyleft/gpl.html
-
-# Sample filter for handling pages with the ADP to Tcl compiler
-
-ad_proc -public acs_page_filter { why } {
-
- # Check for updates to Tcl library files
- # watch_files
-
- set url [template::util::resolve_directory_url [ns_conn url]]
-
- if { ! [regsub {.acs$} $url {} url_stub] } { return filter_ok }
-
- if { [catch {
-
- #set url [template::util::resolve_directory_url [ad_conn url]]
- set root_path [ns_info pageroot]
-
- template::filter exec url_stub root_path
-
- set file_stub $root_path/$url_stub
-
- ns_log Notice $file_stub
-
- set beginTime [clock clicks]
-
- set output [template::adp_parse $file_stub {}]
-
- set timeElapsed [expr ([clock clicks] - $beginTime) / 1000]
- ns_log Notice "Time elapsed: $timeElapsed"
-
- } errMsg] } {
-
- if { [string equal FILTER_ABORT $errMsg] } { return filter_return }
-
- # truncate ADP buffer
- ns_adp_trunc
-
- global errorInfo
- # truncate the error trace (no problem for debugging ?)
- regsub {\(procedure \"code::tcl.*$} $errorInfo {} errorInfo
-
- set output "
- An internal error ocurred while preparing a template $url_stub:
- $errorInfo
- "
- }
-
- if { [string length $output] } {
- ns_return 200 text/html $output
- }
-
- return filter_return
-}
-
# Redirect and abort processing
ad_proc -public template::forward { url } {
- if { ! [string match http://* $url] } {
-
- if { [string index $url 0] != "/" } {
- set url [util::get_url_directory [ns_conn url]]$url
- }
- set host_name [ns_set iget [ns_conn headers] Host]
- set url http://$host_name$url
- }
+ # DRB: The code that was here before didn't preserve the protocol, always
+ # using HTTP even if HTTPS was used to establish the connection. Besides
+ # which ad_returnredirect has funky checks for even funkier browsers, and
+ # is therefore not only the standard way to redirect in OpenACS 4 but
+ # more robust as well.
- global errorInfo
-
- ns_returnredirect $url
-
- # (DanW OpenACS, dcwickstrom@earthlink.net) - commented this out since the
- # rp doesn't seem to support this processing method. It appears that this
- # is used as a mechanism to abort further processing of a page, but the rp
- # doesn't have the catch and continue code as implied by acs_page_filter
- # example shown above.
- #error FILTER_ABORT
+ ad_returnredirect $url
+ ad_script_abort
}
# Run any filter procedures that have been registered with the
@@ -113,14 +48,22 @@
}
}
+# DRB: The following debugging filters weren't integrated with OpenACS.
+# I fixed them but not very elegantly - they assume you're trying to debug
+# a template within a package, not at the top www level. As it turns out
+# the query processor makes similar assumptions so making these work for
+# "/foo"-style URLs would require fixing it, too. Also ACS 4.2 had these
+# debugging filters enabled by default. I've turned them off by default.
+
# Show the compiled template (for debugging)
ad_proc -public cmp_page_filter { why } {
if { [catch {
- set url [ad_conn url]
- regsub {.cmp$} $url {} url_stub
- set file_stub [ns_url2file $url_stub]
+ set url [ns_conn url]
+ regsub {.cmp} $url {} url_stub
+ regexp {^/([^/]*)(.*)} $url_stub all package_key rest
+ set file_stub "[acs_root_dir]/packages/$package_key/www$rest"
set beginTime [clock clicks]
@@ -145,9 +88,10 @@
ad_proc -public dat_page_filter { why } {
if { [catch {
- set url [ad_conn url]
- regsub {.dat$} $url {} url_stub
- set code_stub [ns_url2file $url_stub]
+ set url [ns_conn url]
+ regsub {.dat} $url {} url_stub
+ regexp {^/([^/]*)(.*)} $url_stub all package_key rest
+ set code_stub "[acs_root_dir]/packages/$package_key/www$rest"
set beginTime [clock clicks]
@@ -170,17 +114,19 @@
# Return the auto-generated template for a form
-ad_proc -public frm_page_filter { why } {
- namespace eval template {
+namespace eval template {
- if { [catch {
+ ad_proc -private frm_page_handler { } {
+ Build the form information for the form page filter. This was
+ originally handled inline but doing so screwed up the query
+ processor.
+ } {
set url [ns_conn url]
regsub {.frm} $url {} url_stub
- set __adp_stub [ns_url2file $url_stub]
+ regexp {^/([^/]*)(.*)} $url_stub all package_key rest
+ set __adp_stub "[acs_root_dir]/packages/$package_key/www$rest"
- set beginTime [clock clicks]
-
# Set the parse level
variable parse_level
lappend parse_level [info level]
@@ -189,9 +135,17 @@
adp_prepare
# get the form template
- set output [form::template \
- [ns_queryget form_id] [ns_queryget form_style]]
+ return [form::template [ns_queryget form_id] [ns_queryget form_style]]
+ }
+}
+ad_proc -public frm_page_filter { why } {
+ if { [catch {
+
+ set beginTime [clock clicks]
+
+ set output [template::frm_page_handler]
+
set timeElapsed [expr ([clock clicks] - $beginTime) / 1000.]
ns_log Notice "Time elapsed: $timeElapsed"
@@ -204,7 +158,6 @@
[ns_quotehtml $output]
"
- }
return filter_return
}
Index: openacs-4/packages/acs-templating/tcl/template-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/template-init.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/acs-templating/tcl/template-init.tcl 13 Mar 2001 22:59:27 -0000 1.1
+++ openacs-4/packages/acs-templating/tcl/template-init.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -10,21 +10,13 @@
# XXX (bquinn): This file should not be here.
-# Register filters if ATS is installed as a Tcl "module".
-# Actually, acs-templating is a package.
-
-# ns_register_filter postauth GET *.acs acs_page_filter
-# ns_register_filter postauth POST *.acs acs_page_filter
-# ns_register_filter postauth GET */ acs_page_filter
-# ns_register_filter postauth POST */ acs_page_filter
-
set pkg_id [apm_package_id_from_key acs-templating]
if { [ad_parameter -package_id $pkg_id ShowCompiledTemplatesP dummy 0] } {
- ns_register_filter postauth GET *.cmp cmp_page_filter
+ ad_register_filter postauth GET *.cmp cmp_page_filter
}
-if { [ad_parameter -package_id $pkg_id ShowDataDictionariesP dummy 1] } {
- ns_register_filter postauth GET *.dat dat_page_filter
- ns_register_filter postauth GET *.frm frm_page_filter
+if { [ad_parameter -package_id $pkg_id ShowDataDictionariesP dummy 0] } {
+ ad_register_filter postauth GET *.dat dat_page_filter
+ ad_register_filter postauth GET *.frm frm_page_filter
}
Index: openacs-4/packages/address-book/address-book.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/address-book/address-book.info,v
diff -u -N -r1.4 -r1.5
--- openacs-4/packages/address-book/address-book.info 4 Sep 2001 00:01:28 -0000 1.4
+++ openacs-4/packages/address-book/address-book.info 9 Mar 2002 02:00:02 -0000 1.5
@@ -9,8 +9,6 @@
- oracle
- postgresql
John Mileham
Application to collaboratively view and edit addresses and contact information.
Index: openacs-4/packages/bookmarks/sql/oracle/bookmarks-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/sql/oracle/bookmarks-create.sql,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/bookmarks/sql/oracle/bookmarks-create.sql 26 Jun 2001 01:37:24 -0000 1.3
+++ openacs-4/packages/bookmarks/sql/oracle/bookmarks-create.sql 9 Mar 2002 02:00:02 -0000 1.4
@@ -82,10 +82,15 @@
-- We use these index for sorting the bookmarks tree
-create index bm_bookmarks_local_title_idx on bm_bookmarks (parent_id, lower(local_title), bookmark_id);
-create index bm_bookmarks_access_date_idx on bm_bookmarks (parent_id, last_access_date, bookmark_id);
+-- DRB: Functional indexes are an Enterprise Edition feature, so this is disabled. What should
+-- we use? I'm not sure at the moment because most of the queries seem to use UPPER not LOWER
+-- on local title, at least in LIKE clauses! Making this index fairly useless (besides it is
+-- only useful if parent_id is included as a qualifier in such cases).
+-- create index bm_bookmarks_local_title_idx on bm_bookmarks (parent_id, lower(local_title), bookmark_id);
+create index bm_bookmarks_access_date_idx on bm_bookmarks (parent_id, last_access_date, bookmark_id);
+
-- For connect by queries
create index bm_bookmarks_idx1 on bm_bookmarks(bookmark_id, parent_id);
create index bm_bookmarks_idx2 on bm_bookmarks(parent_id, bookmark_id);
Index: openacs-4/packages/chat/chat.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat/chat.info,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/chat/chat.info 20 Apr 2001 20:51:08 -0000 1.1
+++ openacs-4/packages/chat/chat.info 9 Mar 2002 02:00:02 -0000 1.2
@@ -9,7 +9,6 @@
oracle
- postgresql
David Dao
This is a chat application
Index: openacs-4/packages/cms/sql/oracle/cms-publishing-wf.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/sql/oracle/cms-publishing-wf.sql,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/cms/sql/oracle/cms-publishing-wf.sql 19 Nov 2001 18:39:05 -0000 1.2
+++ openacs-4/packages/cms/sql/oracle/cms-publishing-wf.sql 9 Mar 2002 02:00:02 -0000 1.3
@@ -11,7 +11,7 @@
/*
* Cases table
*/
-create table cr_workflows (
+create table publishing_wf_cases (
case_id integer primary key
references wf_cases on delete cascade
);
@@ -29,7 +29,7 @@
pretty_plural => 'Simple Publishing Workflows',
description => 'A simple linear workflow for authoring,
editing and scheduling content items.',
- table_name => 'cr_workflows'
+ table_name => 'publishing_wf_cases'
);
end;
/
Index: openacs-4/packages/cms/sql/postgresql/cms-publishing-wf.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/sql/postgresql/cms-publishing-wf.sql,v
diff -u -N -r1.5 -r1.6
--- openacs-4/packages/cms/sql/postgresql/cms-publishing-wf.sql 19 Nov 2001 18:38:19 -0000 1.5
+++ openacs-4/packages/cms/sql/postgresql/cms-publishing-wf.sql 9 Mar 2002 02:00:02 -0000 1.6
@@ -11,7 +11,7 @@
/*
* Cases table
*/
-create table cr_workflows (
+create table publishing_wf_cases (
case_id integer primary key
references wf_cases on delete cascade
);
@@ -29,7 +29,7 @@
''Simple Publishing Workflows'',
''A simple linear workflow for authoring,
editing and scheduling content items.'',
- ''cr_workflows'',
+ ''publishing_wf_cases'',
''case_id''
);
Index: openacs-4/packages/cms-news-demo/cms-news-demo.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms-news-demo/cms-news-demo.info,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/cms-news-demo/cms-news-demo.info 24 Aug 2001 19:58:33 -0000 1.2
+++ openacs-4/packages/cms-news-demo/cms-news-demo.info 9 Mar 2002 02:00:02 -0000 1.3
@@ -9,7 +9,6 @@
oracle
- postgresql
Michael Pih
A demo news site built using CMS.
Index: openacs-4/packages/directory/www/index.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/directory/www/index.xql,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/directory/www/index.xql 21 Oct 2001 21:44:46 -0000 1.2
+++ openacs-4/packages/directory/www/index.xql 9 Mar 2002 02:00:02 -0000 1.3
@@ -37,7 +37,7 @@
- order by lower(email)
+ order by email
@@ -49,15 +49,15 @@
- order by lower(email) desc
+ order by email desc
and (lower(first_names) like '%' || lower(:search) || '%'
or lower(last_name) like '%' || lower(:search) || '%'
- or lower(email) like '%' || lower(:search) || '%')
+ or email like '%' || lower(:search) || '%')
Index: openacs-4/packages/ecommerce/ecommerce.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/ecommerce.info,v
diff -u -N -r1.18 -r1.19
--- openacs-4/packages/ecommerce/ecommerce.info 16 Feb 2002 23:32:06 -0000 1.18
+++ openacs-4/packages/ecommerce/ecommerce.info 9 Mar 2002 02:00:02 -0000 1.19
@@ -118,8 +118,6 @@
-
-
@@ -140,8 +138,6 @@
-
-
@@ -160,8 +156,6 @@
-
-
@@ -271,8 +265,6 @@
-
-
@@ -334,8 +326,6 @@
-
-
@@ -349,14 +339,10 @@
-
-
-
-
@@ -388,8 +374,6 @@
-
-
@@ -408,8 +392,6 @@
-
-
@@ -524,8 +506,6 @@
-
-
@@ -548,8 +528,6 @@
-
-
@@ -576,8 +554,6 @@
-
-
@@ -661,8 +637,6 @@
-
-
@@ -703,8 +677,6 @@
-
-
@@ -747,8 +719,6 @@
-
-
@@ -792,8 +762,6 @@
-
-
@@ -896,12 +864,8 @@
-
-
-
-
@@ -985,57 +949,57 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.tcl,v
diff -u -N -r1.4 -r1.5
--- openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.tcl 31 Jan 2002 22:43:54 -0000 1.4
+++ openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.tcl 9 Mar 2002 02:00:02 -0000 1.5
@@ -447,7 +447,7 @@
set user_id [db_string user_id_select "
select user_id
from cc_users
- where upper(email)=upper(:email)
+ where email=lower(:email)
" -default ""]
db_transaction {
@@ -458,7 +458,7 @@
set user_identification_id [lindex $user_identification_and_issue_id 0]
} else {
# check if the recipient is an unregistered user of the system
- set user_identification_id [db_string user_identification_id_select "select user_identification_id from ec_user_identification where upper(email)=upper(:email)" -default ""]
+ set user_identification_id [db_string user_identification_id_select "select user_identification_id from ec_user_identification where email=lower(:email)" -default ""]
if { [empty_string_p $user_identification_id] } {
set user_identification_id [db_nextval ec_user_ident_id_sequence]
Index: openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.xql,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.xql 18 Jul 2001 23:46:14 -0000 1.2
+++ openacs-4/packages/ecommerce/tcl/ecommerce-email-procs.xql 9 Mar 2002 02:00:02 -0000 1.3
@@ -154,15 +154,15 @@
select user_id
from cc_users
- where upper(email)=upper(:email)
+ where email=lower(:email)
- select user_identification_id from ec_user_identification where upper(email)=upper(:email)
+ select user_identification_id from ec_user_identification where email=lower(:email)
Index: openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.tcl,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.tcl 29 Jan 2002 00:11:46 -0000 1.2
+++ openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.tcl 9 Mar 2002 02:00:02 -0000 1.3
@@ -232,7 +232,7 @@
# if their email address was filled in, see if they're a registered user
if { ![empty_string_p $email] } {
set email [string toupper $email]
- if { [db_0or1row get_does_row_exist_p "select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where upper(email) =:email "]==1 } {
+ if { [db_0or1row get_does_row_exist_p "select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where email =lower(:email) "]==1 } {
append doc_body "This is a registered user of the system: $d_first_names $d_last_name.
@@ -276,7 +276,7 @@
set already_selected_user_identification_id_list [list]
if { ![empty_string_p $email] } {
- set sql "select user_identification_id as d_user_identification_id from ec_user_identification where upper(email)=upper(:email) and user_id is null"
+ set sql "select user_identification_id as d_user_identification_id from ec_user_identification where email=lower(:email) and user_id is null"
db_foreach get_user_identification $sql {
Index: openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.xql,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.xql 10 Jul 2001 20:33:53 -0000 1.1
+++ openacs-4/packages/ecommerce/www/admin/customer-service/interaction-add-2.xql 9 Mar 2002 02:00:02 -0000 1.2
@@ -17,7 +17,7 @@
- select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where upper(email) =:email
+ select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where email =lower(:email)
Index: openacs-4/packages/ecommerce/www/admin/customer-service/user-identification-search.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/user-identification-search.tcl,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/admin/customer-service/user-identification-search.tcl 26 Aug 2001 23:40:49 -0000 1.2
+++ openacs-4/packages/ecommerce/www/admin/customer-service/user-identification-search.tcl 9 Mar 2002 02:00:02 -0000 1.3
@@ -29,7 +29,7 @@
# keyword can refer to email, first_names, last_name, postal_code, or other_id_info
set keyword [string tolower $keyword]
set sql "select user_identification_id from ec_user_identification
-where (lower(email) like :keyword or lower(first_names || ' ' || last_name) like :keyword or lower(postal_code) like :keyword or lower(other_id_info) like :keyword)
+where (email like :keyword or lower(first_names || ' ' || last_name) like :keyword or lower(postal_code) like :keyword or lower(other_id_info) like :keyword)
and user_id is null
"
Index: openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.tcl 20 Apr 2001 20:51:14 -0000 1.1
+++ openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -110,7 +110,7 @@
# if their email address was filled in, see if they're a registered user
if { ![empty_string_p $email] } {
set email [string toupper $email]
- set row_exists_p [db_0or1row get_row_exists_name "select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where upper(email) = :email"]
+ set row_exists_p [db_0or1row get_row_exists_name "select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where email = lower(:email)"]
if { [info exists d_user_id] } {
append doc_body "This is a registered user of the system: $d_first_names $d_last_name.
Index: openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.xql,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.xql 10 Jul 2001 20:33:53 -0000 1.1
+++ openacs-4/packages/ecommerce/www/admin/customer-service/user-identification.xql 9 Mar 2002 02:00:02 -0000 1.2
@@ -10,7 +10,7 @@
- select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where upper(email) = :email
+ select first_names as d_first_names, last_name as d_last_name, user_id as d_user_id from cc_users where email = lower(:email)
Index: openacs-4/packages/ecommerce/www/admin/mailing-lists/member-add.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/mailing-lists/member-add.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/admin/mailing-lists/member-add.tcl 20 Apr 2001 20:51:14 -0000 1.1
+++ openacs-4/packages/ecommerce/www/admin/mailing-lists/member-add.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -33,9 +33,9 @@
append page_html "Users whose last name contains '$last_name':
\n"
set last_bit_of_query "upper(last_name) like :u_last_name"
} else {
- set u_email %[string toupper $email]%
+ set l_email %[string tolower $email]%
append page_html "Users whose email contains '$email':
\n"
- set last_bit_of_query "upper(email) like :u_email"
+ set last_bit_of_query "email like :l_email"
}
append page_html "
Index: openacs-4/packages/ecommerce/www/admin/user-classes/member-add.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/user-classes/member-add.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/admin/user-classes/member-add.tcl 20 Apr 2001 20:51:14 -0000 1.1
+++ openacs-4/packages/ecommerce/www/admin/user-classes/member-add.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -31,9 +31,9 @@
append page_html "Users whose last name contains '$last_name':
\n"
set last_bit_of_query "upper(last_name) like :u_last_name"
} else {
- set u_email %[string toupper $email]%
+ set l_email %[string tolower $email]%
append page_html "Users whose email contains '$email':
\n"
- set last_bit_of_query "upper(email) like :u_email"
+ set last_bit_of_query "email like :l_email"
}
append page_html "
@@ -58,4 +58,4 @@
"
-doc_return 200 text/html $page_html
\ No newline at end of file
+doc_return 200 text/html $page_html
Index: openacs-4/packages/faq/faq.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/faq/faq.info,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/faq/faq.info 20 Apr 2001 20:51:10 -0000 1.1
+++ openacs-4/packages/faq/faq.info 9 Mar 2002 02:00:02 -0000 1.2
@@ -9,7 +9,6 @@
oracle
- postgresql
Elizabeth Wirth
Jennie Kim Housman
Index: openacs-4/packages/general-comments/www/comment-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/comment-add-2.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/general-comments/www/comment-add-2.tcl 31 Oct 2001 20:42:07 -0000 1.3
+++ openacs-4/packages/general-comments/www/comment-add-2.tcl 9 Mar 2002 02:00:02 -0000 1.4
@@ -43,6 +43,6 @@
set page_title "Confirm comment on $object_name"
set context_bar {"Confirm comment"}
set target "comment-add-3"
-set html_content [ad_html_text_convert -from $comment_mime_type $content]
+set html_content [ad_html_text_convert -from $comment_mime_type -- $content]
ad_return_template "comment-ae-2"
Index: openacs-4/packages/general-comments/www/comment-edit-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/comment-edit-2.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/general-comments/www/comment-edit-2.tcl 31 Oct 2001 20:42:07 -0000 1.3
+++ openacs-4/packages/general-comments/www/comment-edit-2.tcl 9 Mar 2002 02:00:02 -0000 1.4
@@ -36,7 +36,7 @@
set context_bar {"Confirm comment"}
set target "comment-edit-3"
-set html_content [ad_html_text_convert -from $comment_mime_type $content]
+set html_content [ad_html_text_convert -from $comment_mime_type -- $content]
ad_return_template "comment-ae-2"
Index: openacs-4/packages/general-comments/www/view-comment.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/view-comment.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/general-comments/www/view-comment.tcl 31 Oct 2001 20:42:07 -0000 1.3
+++ openacs-4/packages/general-comments/www/view-comment.tcl 9 Mar 2002 02:00:02 -0000 1.4
@@ -141,6 +141,6 @@
set is_creator_p "t"
}
-set html_content [ad_html_text_convert -from $mime_type $content]
+set html_content [ad_html_text_convert -from $mime_type -- $content]
ad_return_template
Index: openacs-4/packages/glossary/sql/oracle/wf-term-submission.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/glossary/sql/oracle/wf-term-submission.sql,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/glossary/sql/oracle/wf-term-submission.sql 19 Nov 2001 22:37:35 -0000 1.2
+++ openacs-4/packages/glossary/sql/oracle/wf-term-submission.sql 9 Mar 2002 02:00:02 -0000 1.3
@@ -1,6 +1,6 @@
/*
- * Business Process Definition: Simple Publishing Workflow (publishing_wf)
+ * Business Process Definition: Simple Publishing Workflow (term_submission_process_wf)
*
* Auto-generated by ACS Workflow Export, version 4.3
*
@@ -11,7 +11,7 @@
/*
* Cases table
*/
-create table cr_workflows (
+create table term_submission_process_cases (
case_id integer primary key
references wf_cases on delete cascade
);
@@ -24,12 +24,11 @@
v_workflow_key varchar2(40);
begin
v_workflow_key := workflow.create_workflow(
- workflow_key => 'publishing_wf',
- pretty_name => 'Simple Publishing Workflow',
- pretty_plural => 'Simple Publishing Workflows',
- description => 'A simple linear workflow for authoring,
- editing and scheduling content items.',
- table_name => 'cr_workflows'
+ workflow_key => 'term_submission_process_wf',
+ pretty_name => 'Term Submission Process',
+ pretty_plural => 'Term Submission Processes',
+ description => 'User submits new term and its definition (and maybe illustration). Administrator approves or rejects submission.',
+ table_name => 'term_submission_process_cases'
);
end;
/
@@ -44,7 +43,7 @@
begin
workflow.add_place(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
place_key => 'start',
place_name => 'Created',
sort_order => 1
@@ -55,7 +54,7 @@
begin
workflow.add_place(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
place_key => 'authored',
place_name => 'Authored',
sort_order => 2
@@ -66,7 +65,7 @@
begin
workflow.add_place(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
place_key => 'edited',
place_name => 'Edited',
sort_order => 3
@@ -77,7 +76,7 @@
begin
workflow.add_place(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
place_key => 'end',
place_name => 'Approved',
sort_order => 4
@@ -93,7 +92,7 @@
begin
workflow.add_role(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
role_key => 'approval',
role_name => 'Approval',
sort_order => 3
@@ -104,7 +103,7 @@
begin
workflow.add_role(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
role_key => 'authoring',
role_name => 'Authoring',
sort_order => 1
@@ -115,7 +114,7 @@
begin
workflow.add_role(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
role_key => 'editing',
role_name => 'Editing',
sort_order => 2
@@ -132,7 +131,7 @@
begin
workflow.add_transition(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'authoring',
transition_name => 'Authoring',
role_key => 'authoring',
@@ -145,7 +144,7 @@
begin
workflow.add_transition(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'editing',
transition_name => 'Editing',
role_key => 'editing',
@@ -158,7 +157,7 @@
begin
workflow.add_transition(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
transition_name => 'Approval',
role_key => 'approval',
@@ -177,11 +176,11 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
place_key => 'authored',
direction => 'out',
- guard_callback => 'publishing_wf.is_next',
+ guard_callback => 'term_submission_process_wf.is_next',
guard_custom_arg => '',
guard_description => ''
);
@@ -191,7 +190,7 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
place_key => 'edited',
direction => 'in',
@@ -205,11 +204,11 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
place_key => 'end',
direction => 'out',
- guard_callback => 'publishing_wf.is_next',
+ guard_callback => 'term_submission_process_wf.is_next',
guard_custom_arg => '',
guard_description => ''
);
@@ -219,11 +218,11 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
place_key => 'start',
direction => 'out',
- guard_callback => 'publishing_wf.is_next',
+ guard_callback => 'term_submission_process_wf.is_next',
guard_custom_arg => '',
guard_description => ''
);
@@ -233,7 +232,7 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
place_key => 'edited',
direction => 'out',
@@ -247,11 +246,11 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'authoring',
place_key => 'authored',
direction => 'out',
- guard_callback => 'publishing_wf.is_next',
+ guard_callback => 'term_submission_process_wf.is_next',
guard_custom_arg => '',
guard_description => ''
);
@@ -261,7 +260,7 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'authoring',
place_key => 'start',
direction => 'out',
@@ -275,7 +274,7 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'authoring',
place_key => 'start',
direction => 'in',
@@ -289,7 +288,7 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'editing',
place_key => 'authored',
direction => 'in',
@@ -303,11 +302,11 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'editing',
place_key => 'edited',
direction => 'out',
- guard_callback => 'publishing_wf.is_next',
+ guard_callback => 'term_submission_process_wf.is_next',
guard_custom_arg => '',
guard_description => ''
);
@@ -317,11 +316,11 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'editing',
place_key => 'start',
direction => 'out',
- guard_callback => 'publishing_wf.is_next',
+ guard_callback => 'term_submission_process_wf.is_next',
guard_custom_arg => '',
guard_description => ''
);
@@ -331,7 +330,7 @@
begin
workflow.add_arc(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'editing',
place_key => 'authored',
direction => 'out',
@@ -353,7 +352,7 @@
v_attribute_id number;
begin
v_attribute_id := workflow.create_attribute(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
attribute_name => 'next_place',
datatype => 'string',
pretty_name => 'Next Place',
@@ -365,7 +364,7 @@
begin
workflow.add_trans_attribute_map(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'approval',
attribute_name => 'next_place',
sort_order => 1
@@ -376,7 +375,7 @@
begin
workflow.add_trans_attribute_map(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'authoring',
attribute_name => 'next_place',
sort_order => 1
@@ -387,7 +386,7 @@
begin
workflow.add_trans_attribute_map(
- workflow_key => 'publishing_wf',
+ workflow_key => 'term_submission_process_wf',
transition_key => 'editing',
attribute_name => 'next_place',
sort_order => 1
Index: openacs-4/packages/glossary/www/term.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/glossary/www/term.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/glossary/www/term.tcl 31 Oct 2001 20:42:07 -0000 1.3
+++ openacs-4/packages/glossary/www/term.tcl 9 Mar 2002 02:00:02 -0000 1.4
@@ -84,7 +84,7 @@
where item_id = :item_id
}
-set html_definition [ad_html_text_convert -from $mime_type $definition]
+set html_definition [ad_html_text_convert -from $mime_type -- $definition]
set glossary_title [db_string get_glossary_title "
select title from glossariesx
Index: openacs-4/packages/monitoring/monitoring.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/monitoring/monitoring.info,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/monitoring/monitoring.info 20 Apr 2001 20:51:11 -0000 1.1
+++ openacs-4/packages/monitoring/monitoring.info 9 Mar 2002 02:00:02 -0000 1.2
@@ -9,7 +9,6 @@
oracle
- postgresql
Joseph Bank
Monitoring apps from ACS 3.4.x
Index: openacs-4/packages/openfts-driver/openfts-driver.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/openfts-driver/openfts-driver.info,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/openfts-driver/openfts-driver.info 15 Sep 2001 22:11:09 -0000 1.2
+++ openacs-4/packages/openfts-driver/openfts-driver.info 9 Mar 2002 02:00:02 -0000 1.3
@@ -9,7 +9,6 @@
- oracle
postgresql
Neophytos Demetriou
Index: openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl 20 Apr 2001 20:51:22 -0000 1.1
+++ openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -7,26 +7,23 @@
@cvs-id $Id$
}
-# Check to see if the robots table needs to be updated
-# when the server starts (5 seconds after to be precise).
-ad_schedule_proc -once t 5 ad_update_robot_list
+# DRB: If the package is mounted check for robots. Since it's a singleton package
+# we know there are only zero or one instances.
+if { [db_0or1row robot_detection_id ""] } {
-# this query is okay because robot-detection is a singleton package (ie, only one instance per site)
-set robot_detection_id [db_string robot_detection_id {
-select package_id from apm_packages
-where package_key = 'robot-detection'} ]
+ # Check to see if the robots table needs to be updated
+ # when the server starts (5 seconds after to be precise).
+ ad_schedule_proc -once t 5 ad_update_robot_list
-#FilterPattern is a comma separated value of URLs that you want to filter
-set filter_pattern_parameter [string trim [ad_parameter -package_id $robot_detection_id FilterPattern]]
-set filter_pattern_list [split $filter_pattern_parameter ","]
+ #FilterPattern is a comma separated value of URLs that you want to filter
+ set filter_pattern_parameter [string trim [ad_parameter -package_id $package_id FilterPattern]]
+ set filter_pattern_list [split $filter_pattern_parameter ","]
-# Install ad_robot_filter for all specified patterns
-foreach filter_pattern $filter_pattern_list {
- ns_log Notice "Installing robot filter for $filter_pattern\n"
- set filter_pattern [ad_urlencode [string trim $filter_pattern]]
- ad_register_filter postauth GET $filter_pattern ad_robot_filter
+ # Install ad_robot_filter for all specified patterns
+ foreach filter_pattern $filter_pattern_list {
+ ns_log Notice "Installing robot filter for $filter_pattern\n"
+ set filter_pattern [ad_urlencode [string trim $filter_pattern]]
+ ad_register_filter postauth GET $filter_pattern ad_robot_filter
+ }
}
-
-
-
Index: openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl 20 Apr 2001 20:51:22 -0000 1.1
+++ openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl 9 Mar 2002 02:00:02 -0000 1.2
@@ -1,4 +1,4 @@
-
+ad_library {
packages/robot-detection/tcl/robot-detection-procs.tcl
@author Michael Yoon (michael@yoon.org)
Index: openacs-4/packages/site-wide-search/site-wide-search.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/site-wide-search/site-wide-search.info,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/site-wide-search/site-wide-search.info 20 Apr 2001 20:51:24 -0000 1.1
+++ openacs-4/packages/site-wide-search/site-wide-search.info 9 Mar 2002 02:00:02 -0000 1.2
@@ -9,7 +9,6 @@
oracle
- postgresql
Khy Huang
Provides search functionality for application data. Supports permissioning, subsites, and searching by keywords.
@@ -19,7 +18,7 @@
-
+
Index: openacs-4/packages/webmail/webmail.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/webmail/webmail.info,v
diff -u -N -r1.1 -r1.2
--- openacs-4/packages/webmail/webmail.info 20 Apr 2001 20:51:23 -0000 1.1
+++ openacs-4/packages/webmail/webmail.info 9 Mar 2002 02:00:02 -0000 1.2
@@ -9,7 +9,6 @@
oracle
- postgresql
Erik Bielefeldt
Web-based email service.
Index: openacs-4/packages/webmail/sql/oracle/webmail-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/webmail/sql/oracle/webmail-create.sql,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/webmail/sql/oracle/webmail-create.sql 19 Oct 2001 02:11:55 -0000 1.2
+++ openacs-4/packages/webmail/sql/oracle/webmail-create.sql 9 Mar 2002 02:00:02 -0000 1.3
@@ -215,7 +215,7 @@
comment on table wm_headers is '
Stores a copy of all headers, including duplicates of the ones stored
in wm_messages (Jin Choi requested this duplication for ease of
- integration with his IMAP server--originally, I didn't have it.)
+ integration with his IMAP server--originally, I did not have it.)
This will be the largest (in terms of rows) table in the system--
about 8 times as many rows as the wm_messages table.
This is one of the reasons why I removed the four most common headers
@@ -232,9 +232,13 @@
-- Improve lookup of a single header for a message, as well as index
-- the foreign key constraint
-create index wm_headers_by_msg_id_name on wm_headers (msg_id, lower(name));
+-- DRB: functional indexes require Enterprise Edition. Comment this out
+-- if you have it. The alternative index is probably just about as good.
+-- create index wm_headers_by_msg_id_name on wm_headers (msg_id, lower(name));
+create index wm_headers_by_msg_id on wm_headers (msg_id);
+
create table wm_parse_errors (
filename varchar(255)
constraint wm_parse_errors_file_pk