forked from hans/Nominatim
validate postgresql module / functions
This commit is contained in:
@@ -10,6 +10,18 @@
|
|||||||
exit;
|
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')");
|
$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))
|
if (PEAR::isError($iWordID))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user