| @@ 1454-1458 (lines=5) @@ | ||
| 1451 | $this->set_insert_batch($set, '', $escape); |
|
| 1452 | } |
|
| 1453 | ||
| 1454 | if (count($this->qb_set) === 0) |
|
| 1455 | { |
|
| 1456 | // No valid data array. Folds in cases where keys and values did not match up |
|
| 1457 | return ($this->db_debug) ? $this->display_error('db_must_use_set') : FALSE; |
|
| 1458 | } |
|
| 1459 | ||
| 1460 | if ($table === '') |
|
| 1461 | { |
|
| @@ 1641-1644 (lines=4) @@ | ||
| 1638 | */ |
|
| 1639 | protected function _validate_insert($table = '') |
|
| 1640 | { |
|
| 1641 | if (count($this->qb_set) === 0) |
|
| 1642 | { |
|
| 1643 | return ($this->db_debug) ? $this->display_error('db_must_use_set') : FALSE; |
|
| 1644 | } |
|
| 1645 | ||
| 1646 | if ($table !== '') |
|
| 1647 | { |
|
| @@ 1676-1679 (lines=4) @@ | ||
| 1673 | $this->set($set); |
|
| 1674 | } |
|
| 1675 | ||
| 1676 | if (count($this->qb_set) === 0) |
|
| 1677 | { |
|
| 1678 | return ($this->db_debug) ? $this->display_error('db_must_use_set') : FALSE; |
|
| 1679 | } |
|
| 1680 | ||
| 1681 | if ($table === '') |
|
| 1682 | { |
|
| @@ 1819-1822 (lines=4) @@ | ||
| 1816 | */ |
|
| 1817 | protected function _validate_update($table) |
|
| 1818 | { |
|
| 1819 | if (count($this->qb_set) === 0) |
|
| 1820 | { |
|
| 1821 | return ($this->db_debug) ? $this->display_error('db_must_use_set') : FALSE; |
|
| 1822 | } |
|
| 1823 | ||
| 1824 | if ($table !== '') |
|
| 1825 | { |
|
| @@ 1863-1866 (lines=4) @@ | ||
| 1860 | $this->set_update_batch($set, $index); |
|
| 1861 | } |
|
| 1862 | ||
| 1863 | if (count($this->qb_set) === 0) |
|
| 1864 | { |
|
| 1865 | return ($this->db_debug) ? $this->display_error('db_must_use_set') : FALSE; |
|
| 1866 | } |
|
| 1867 | ||
| 1868 | if ($table === '') |
|
| 1869 | { |
|