Permalink
Browse files

validate postgresql module / functions

  • Loading branch information...
1 parent e591269 commit f56cae42913606ca9893983e3b62199a7f68b8b9 @twain47 committed Jan 23, 2014
Showing with 12 additions and 0 deletions.
  1. +12 −0 website/status.php
View
12 website/status.php
@@ -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))
{

0 comments on commit f56cae4

Please sign in to comment.