]> git.openstreetmap.org Git - nominatim.git/commitdiff
validate postgresql module / functions
authorBrian Quinion <brian.quinion@mapquest.com>
Thu, 23 Jan 2014 16:06:43 +0000 (16:06 +0000)
committerBrian Quinion <brian.quinion@mapquest.com>
Thu, 23 Jan 2014 16:06:43 +0000 (16:06 +0000)
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))
        {