sqlite - Distribute NOT across parenthesis in SQL query, is it possible? -
i'm building parser turn search string boolean operators , nested parenthesis in sql queries. search string "(foo bar) or (foo baz)" generates
( "cards"."name" '%foo%' , "cards"."name" '%bar%' ) or ( "cards"."name" '%foo%' , "cards"."name" '%baz%' )
or , and work fine this, not doesn't work expected. i've done reading , looks modifies selectors? i'm pretty unfamiliar.
is there way prefix group of selectors, "not (foo bar)" might expand functional equivalent of:
( "cards"."name" not '%foo%' , "cards"."name" not '%bar%' )
Comments
Post a Comment