From f56cae42913606ca9893983e3b62199a7f68b8b9 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Thu, 23 Jan 2014 16:06:43 +0000 Subject: [PATCH] validate postgresql module / functions --- website/status.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/status.php b/website/status.php index c9d872d0..a826c5f0 100644 --- a/website/status.php +++ b/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)) { -- 2.39.5