包含空格的tsquery中的错误

时间:2017-09-06 13:24:13

标签: sql postgresql

我看过这篇文章:

syntax error in tsquery : parameter with whitespaces

我的查询中的空格仍然有问题:

        IF search_term <> '' THEN
            $3 := 'plainto_tsquery(''' || $3 || ':*'') @@ textsearchable_index_col';
        ELSE
            $3 := '

我得到以下错误:

postgres_1       | ERROR:  syntax error in tsquery: "Test Test:*"

请帮忙

0 个答案:

没有答案