Index: openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl,v diff -u -N -r1.6 -r1.6.2.1 --- openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl 27 Oct 2014 16:42:00 -0000 1.6 +++ openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl 29 Apr 2016 07:04:55 -0000 1.6.2.1 @@ -31,12 +31,12 @@ # in psql we do this by checking the presense of a data type tsvector # select typname from pg_type where typename='tsvector'; - if { [db_0or1row "tsearch_compile_check" "select distinct(typname) from pg_type where typname='tsvector'"] } { - - # if tsearch is installed - ns_log Notice "******* Tsearch2 is compiled and installed. ***********" - # continue with installation - + if { [db_0or1row tsearch_compile_check { + select distinct(typname) from pg_type where typname='tsvector' + }] } { + # if tsearch is installed + ns_log Notice "******* Tsearch2 is compiled and installed. ***********" + # continue with installation } else { # tsearch not installed