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.4 -r1.5 --- openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl 16 May 2005 13:15:32 -0000 1.4 +++ openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl 29 Sep 2009 23:11:22 -0000 1.5 @@ -1,4 +1,4 @@ -# +# ad_library { @@ -30,8 +30,8 @@ # check if tsearch2 is installed # 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 typname from pg_type where typname='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. ***********"