Commit 99390390 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Lukas Fleischer
Browse files

Fix WHERE clause for keyword search queries with empty keywords

When the keyword parameter is empty, the AND clause has to be omitted,
otherwise we get an SQL syntax error:

... WHERE PackageBases.PackagerUID IS NOT NULL AND () ...

This got broken in commit 9e30013a


Author: Kevin Morris <kevr.gtalk@gmail.com>
Date:   Sun Jul 5 18:19:06 2020 -0700

Support conjunctive keyword search in RPC interface
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 8c0664b8
Pipeline #2143 passed with stage
in 47 seconds