validate postgresql module / functions

This commit is contained in:
Brian Quinion 2014-01-23 16:06:43 +00:00
parent e591269fd8
commit f56cae4291

View File

@ -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))
{