Dan Kennedy explained why this limitation exists:
>On 27/2/62 05:47, Jake Thaw wrote:
>>This may not strictly be a bug, but currently (3.27.2) a vtab cannot overload
>>scalar functions in aggregate queries.
>>
>>Adding a check for TK_AGG_COLUMN in sqlite3VtabOverloadFunction makes my use
>>case
Thank you, that works!
I still think highlight() not working in this case may be a bug, though,
since it only operates on a single row and in theory shouldn't be affected
by the group by (but there may be limitations not obvious to me).
Thanks again,
Adrian
___
Damian Adrian wrote:
> While using the FTS5 highlight() function in a group by query like this one:
>
> SELECT
> group_concat(highlight(entries, 1, '>', '<'))
> FROM entries
> WHERE entries MATCH 'an*'
> GROUP BY id;
>
> I get "Error: unable to use function highlight in the requested context".
Hello,
While using the FTS5 highlight() function in a group by query like this one:
CREATE VIRTUAL TABLE entries USING fts5(id UNINDEXED, content);
INSERT INTO entries
VALUES ('one', 'one'), ('two', 'another one' ), ('two', 'another two' );
SELECT
group_concat(highlight(entries, 1, '>', '<'
4 matches
Mail list logo