CI_DB_query_builder::get_compiled_update PHP Method

get_compiled_update() public method

Compiles an update query and returns the sql
public get_compiled_update ( $table = '', $reset = TRUE ) : string
return string
    public function get_compiled_update($table = '', $reset = TRUE)
    {
        // Combine any cached components with the current statements
        $this->_merge_cache();
        if ($this->_validate_update($table) === FALSE) {
            return FALSE;
        }
        $sql = $this->_update($this->qb_from[0], $this->qb_set);
        if ($reset === TRUE) {
            $this->_reset_write();
        }
        return $sql;
    }