]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/status.php
validate postgresql module / functions
[nominatim.git] / website / status.php
index c9d872d0395e67ae2d5736e439d5565fe02f89c8..a826c5f03301c12b852f3ca6a73fe60447b31672 100644 (file)
                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))
        {