sqlite match fts does not work correctly in LC?

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rinzwind
Posts: 135
Joined: Tue May 01, 2012 10:44 am

sqlite match fts does not work correctly in LC?

Post by rinzwind » Wed Aug 19, 2015 1:50 pm

I try to get a result of a query similar to
select * from table1 where table1 match 'abc -def'

This should return all rows with the value abc and not def in one of its columns. It works in sqlite browser. But not in LiveCode. It ignores the - part. Also tried NOT.

Same with the or operator. It just removes it or something?... Bad behavior.

Also when using a :1 in the match query it only returns the 1 result.

Any ideas?

rinzwind
Posts: 135
Joined: Tue May 01, 2012 10:44 am

Re: sqlite match fts does not work correctly in LC?

Post by rinzwind » Wed Aug 19, 2015 3:18 pm

Also when using a :1 in the match query it only returns the 1 result.
well, that happens to be the case if i enter it like ':1' int the query. If I just use :1 without quotes that works.
Still... livecode seems to rip of the other operators.? Maybe buildin safety, but in this case one needs it in order for sqlite powerful match functionality to work...
https://www.sqlite.org/fts3.html

Post Reply

Return to “Databases”