mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 05:52:32 +03:00
validate postgresql module / functions
This commit is contained in:
parent
e591269fd8
commit
f56cae4291
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user