Project

General

Profile

Bug #18966 » 0008728.diff

Administrator Admin, 2009-08-27 17:53

View differences:

C:/xampp/htdocs/t3trunk/t3lib/class.t3lib_db.php Do Aug 27 17:37:21 2009
* @return integer Number of resulting rows
*/
function sql_num_rows($res) {
$this->debug_check_recordset($res);
return mysql_num_rows($res);
if($this->debug_check_recordset($res)) {
return mysql_num_rows($res);
} else {
return false;
}
}
/**
......
* @return array Associative array of result row.
*/
function sql_fetch_assoc($res) {
$this->debug_check_recordset($res);
return mysql_fetch_assoc($res);
if($this->debug_check_recordset($res)) {
return mysql_fetch_assoc($res);
} else {
return false;
}
}
/**
......
* @return array Array with result rows.
*/
function sql_fetch_row($res) {
$this->debug_check_recordset($res);
return mysql_fetch_row($res);
if($this->debug_check_recordset($res)) {
return mysql_fetch_row($res);
} else {
return false;
}
}
/**
......
* @return boolean Returns TRUE on success or FALSE on failure.
*/
function sql_free_result($res) {
$this->debug_check_recordset($res);
return mysql_free_result($res);
if($this->debug_check_recordset($res)) {
return mysql_free_result($res);
} else {
return false;
}
}
/**
......
* @return boolean Returns TRUE on success or FALSE on failure.
*/
function sql_data_seek($res,$seek) {
$this->debug_check_recordset($res);
return mysql_data_seek($res,$seek);
if($this->debug_check_recordset($res)) {
return mysql_data_seek($res,$seek);
} else {
return false;
}
}
/**
......
* @return string Returns the name of the specified field index
*/
function sql_field_type($res,$pointer) {
$this->debug_check_recordset($res);
return mysql_field_type($res,$pointer);
if($this->debug_check_recordset($res)) {
return mysql_field_type($res,$pointer);
} else {
return false;
}
}
/**
(1-1/2)