我看过这篇文章:
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:*"
请帮忙