8000 add 'free_result' &|| 'next_result'-type methods to the mysql db query classes · Issue #32 · ccampbell/sonic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
add 'free_result' &|| 'next_result'-type methods to the mysql db query classes #32
Open
@csurf

Description

@csurf

the current query classes do not implement a way to do a 'free_result' or a 'next_result' call in order to be able to free up resources, or to grab the next result in a multi-result set (such as when calling a stored procedure, only applies to the mysqli driver).

my temp solution:
in Mysqli\Statement...
public function freeResult(){
do{
mysqli_next_result($this->_link);
}while(mysqli_more_results($this->_link));
mysqli_free_result($this->_result);
}
public function nextResult(){
if(mysqli_more_results($this->_link)){
mysqli_free_result($this->_result);
mysqli_next_result($this->_link);
$this->_result=mysqli_store_result($this->_link);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0