From: Sarah Hoffmann Date: Sun, 15 Aug 2021 15:49:22 +0000 (+0200) Subject: ignore words without id for status X-Git-Tag: v4.0.0~42^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/23e3724abb62649777dd9f8956094dc03acb8510 ignore words without id for status --- diff --git a/lib-php/tokenizer/legacy_icu_tokenizer.php b/lib-php/tokenizer/legacy_icu_tokenizer.php index 3751e821..4e297954 100644 --- a/lib-php/tokenizer/legacy_icu_tokenizer.php +++ b/lib-php/tokenizer/legacy_icu_tokenizer.php @@ -19,7 +19,7 @@ class Tokenizer public function checkStatus() { - $sSQL = 'SELECT word_id FROM word limit 1'; + $sSQL = 'SELECT word_id FROM word WHERE word_id is not null limit 1'; $iWordID = $this->oDB->getOne($sSQL); if ($iWordID === false) { throw new \Exception('Query failed', 703);