Explorar o código

:bug: 没有搜索条件的 去掉where true

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
4d8df424fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/search/paliword_sc.php

+ 1 - 1
app/search/paliword_sc.php

@@ -237,7 +237,7 @@ $time_start = microtime_float();
 
 PDO_Connect(_FILE_DB_PALI_INDEX_);
 
-$query = "SELECT count(*) from (SELECT book FROM "._TABLE_WORD_." WHERE \"wordindex\" in $strQueryWordId  $strQueryBookId group by book,paragraph) as qr where true ";
+$query = "SELECT count(*) from (SELECT book FROM "._TABLE_WORD_." WHERE \"wordindex\" in $strQueryWordId  $strQueryBookId group by book,paragraph) as qr  ";
 $result["record_count"] = PDO_FetchOne($query);
 $result["time"][] = array("event" => "查询记录数", "time" => microtime(true) - $_start);