Ver Fonte

added DBG_SQL

Piotr Labudda há 9 anos atrás
pai
commit
16c731b2dc
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      SE/se-lib/Core/Pdo.php

+ 2 - 0
SE/se-lib/Core/Pdo.php

@@ -418,12 +418,14 @@ EOF_STRUCT_MYSQL;
 	}
 
 	public function fetchAll($sql) {
+		DBG::_('DBG_SQL', '>3', "sql", $sql, __CLASS__, __FUNCTION__, __LINE__);
 		$sth = $this->prepare($sql);
 		$sth->execute();
 		return $sth->fetchAll();
 	}
 
 	public function fetchAllByKey($sql, $key = 'ID') {
+		DBG::_('DBG_SQL', '>3', "sql", $sql, __CLASS__, __FUNCTION__, __LINE__);
 		$rowsByKey = array();
 		$sth = $this->prepare($sql);
 		$sth->execute();