Explorar el Código

:bug: limit x,y

visuddhinanda hace 4 años
padre
commit
3c0291c140
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/pali_text/function.php

+ 1 - 1
app/pali_text/function.php

@@ -21,7 +21,7 @@ class PaliText extends Table
 		$sFirstParentTitle = "";
 		//循环查找父标题 得到整条路径
 		while ($parent > -1) {
-			$query = "select * from pali_text where \"book\" = ? and \"paragraph\" = ? limit 0,1";
+			$query = "select * from pali_text where \"book\" = ? and \"paragraph\" = ? limit 1";
 			$stmt = $this->dbh->prepare($query);
 			$stmt->execute(array($book, $parent));
 			$FetParent = $stmt->fetch(PDO::FETCH_ASSOC);