Revision 2129
Added by darkviper over 10 years ago
| WbDatabase.php | ||
|---|---|---|
| 185 | 185 |
$oRetval = null; |
| 186 | 186 |
$this->iQueryCount++; |
| 187 | 187 |
$mysql = new mysql($this->oDbHandle, $statement); |
| 188 |
$this->set_error($mysql->error($this->oDbHandle));
|
|
| 188 |
$this->setError($mysql->error($this->oDbHandle));
|
|
| 189 | 189 |
if (!$mysql->error()) {
|
| 190 | 190 |
$oRetval = $mysql; |
| 191 | 191 |
} |
| 192 |
$this->set_error($mysql->error($this->oDbHandle));
|
|
| 192 |
$this->setError($mysql->error($this->oDbHandle));
|
|
| 193 | 193 |
return $oRetval; |
| 194 | 194 |
} |
| 195 | 195 |
/** |
| ... | ... | |
| 439 | 439 |
*/ |
| 440 | 440 |
public function fetchAssoc() |
| 441 | 441 |
{
|
| 442 |
return mysqli_fetch_row($this->result);
|
|
| 442 |
return mysqli_fetch_assoc($this->result);
|
|
| 443 | 443 |
} |
| 444 | 444 |
/** |
| 445 | 445 |
* fetchArray |
| ... | ... | |
| 477 | 477 |
*/ |
| 478 | 478 |
public function fetchAll($iType = MYSQLI_ASSOC) |
| 479 | 479 |
{
|
| 480 |
$iType = $iType != MYSQLI_NUM ? MYSQL_ASSOC : MYSQLI_NUM; |
|
| 480 |
$iType = $iType != MYSQLI_NUM ? MYSQLI_ASSOC : MYSQLI_NUM;
|
|
| 481 | 481 |
return mysqli_fetch_all($this->result, $iType); |
| 482 | 482 |
} |
| 483 | 483 |
/** |
Also available in: Unified diff
! framework/initialize.php added ErrorHandler and ERROR-LOG file