| @@ 565-574 (lines=10) @@ | ||
| 562 | * @param boolean $with_values |
|
| 563 | * @return resource |
|
| 564 | */ |
|
| 565 | function _executeInsertAct($queryObject, $with_values = true) |
|
| 566 | { |
|
| 567 | $query = $this->getInsertSql($queryObject, $with_values, true); |
|
| 568 | $query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : ''; |
|
| 569 | if(is_a($query, 'Object')) |
|
| 570 | { |
|
| 571 | return; |
|
| 572 | } |
|
| 573 | return $this->_query($query); |
|
| 574 | } |
|
| 575 | ||
| 576 | /** |
|
| 577 | * Handles updateAct |
|
| @@ 582-595 (lines=14) @@ | ||
| 579 | * @param boolean $with_values |
|
| 580 | * @return resource |
|
| 581 | */ |
|
| 582 | function _executeUpdateAct($queryObject, $with_values = true) |
|
| 583 | { |
|
| 584 | $query = $this->getUpdateSql($queryObject, $with_values, true); |
|
| 585 | if(is_a($query, 'Object')) |
|
| 586 | { |
|
| 587 | if(!$query->toBool()) return $query; |
|
| 588 | else return; |
|
| 589 | } |
|
| 590 | ||
| 591 | $query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : ''; |
|
| 592 | ||
| 593 | ||
| 594 | return $this->_query($query); |
|
| 595 | } |
|
| 596 | ||
| 597 | /** |
|
| 598 | * Handles deleteAct |
|
| @@ 603-612 (lines=10) @@ | ||
| 600 | * @param boolean $with_values |
|
| 601 | * @return resource |
|
| 602 | */ |
|
| 603 | function _executeDeleteAct($queryObject, $with_values = true) |
|
| 604 | { |
|
| 605 | $query = $this->getDeleteSql($queryObject, $with_values, true); |
|
| 606 | $query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : ''; |
|
| 607 | if(is_a($query, 'Object')) |
|
| 608 | { |
|
| 609 | return; |
|
| 610 | } |
|
| 611 | return $this->_query($query); |
|
| 612 | } |
|
| 613 | ||
| 614 | /** |
|
| 615 | * Handle selectAct |
|