|
@@ 406-415 (lines=10) @@
|
| 403 |
|
return $this->getServerVersion(); |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
public function bufferResults( $buffer = null ) { |
| 407 |
|
$res = !$this->getFlag( self::DBO_NOBUFFER ); |
| 408 |
|
if ( $buffer !== null ) { |
| 409 |
|
$buffer |
| 410 |
|
? $this->clearFlag( self::DBO_NOBUFFER ) |
| 411 |
|
: $this->setFlag( self::DBO_NOBUFFER ); |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
return $res; |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
/** |
| 418 |
|
* Turns on (false) or off (true) the automatic generation and sending |
|
@@ 429-438 (lines=10) @@
|
| 426 |
|
* @param null|bool $ignoreErrors |
| 427 |
|
* @return bool The previous value of the flag. |
| 428 |
|
*/ |
| 429 |
|
protected function ignoreErrors( $ignoreErrors = null ) { |
| 430 |
|
$res = $this->getFlag( self::DBO_IGNORE ); |
| 431 |
|
if ( $ignoreErrors !== null ) { |
| 432 |
|
$ignoreErrors |
| 433 |
|
? $this->setFlag( self::DBO_IGNORE ) |
| 434 |
|
: $this->clearFlag( self::DBO_IGNORE ); |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
return $res; |
| 438 |
|
} |
| 439 |
|
|
| 440 |
|
public function trxLevel() { |
| 441 |
|
return $this->mTrxLevel; |