Hi, all.
I want to use full text search in Postgresql using a grid application. But I cannot found a way to change the “where” cause. What I did:
-
SQL, “select * from document”
-
grid’s event onScriptInit, sc_select_where(add) = "where document_search @@ to_tsquery(‘english’, {document_search}) ";
But I got run time error and the resulting SQL is:
“select count(*) from “public”.document where document_search = 'invoice’where document_search @@ to_tsquery(‘english’, invoice )” -
search’s event onScriptInit, sc_select_where(add) = "where document_search @@ to_tsquery(‘english’, {document_search}) ";
No record found.
From the DB log, it looks like “@@” has lost, is that right ?
Where can I custom the “where” cause ?
Regards,
Almond Wong