From: Brian Quinion Date: Thu, 23 Jan 2014 16:06:43 +0000 (+0000) Subject: validate postgresql module / functions X-Git-Tag: v2.2.0~16 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f56cae42913606ca9893983e3b62199a7f68b8b9?ds=inline;hp=-c validate postgresql module / functions --- f56cae42913606ca9893983e3b62199a7f68b8b9 diff --git a/website/status.php b/website/status.php index c9d872d0..a826c5f0 100644 --- a/website/status.php +++ b/website/status.php @@ -10,6 +10,18 @@ exit; } + $sStandardWord = $oDB->getOne("select make_standard_name('a')"); + if (PEAR::isError($sStandardWord)) + { + echo "ERROR: Module failed"; + exit; + } + if ($sStandardWord != 'a') + { + echo "ERROR: Transliteration failed"; + exit; + } + $iWordID = $oDB->getOne("select word_id,word_token, word, class, type, country_code, operator, search_name_count from word where word_token in (' a')"); if (PEAR::isError($iWordID)) {