Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added call method #12

Open
dariop opened this issue Nov 5, 2018 · 3 comments
Open

Added call method #12

dariop opened this issue Nov 5, 2018 · 3 comments

Comments

@dariop
Copy link

dariop commented Nov 5, 2018

Maybe someone could find it interesting ...

public function call($query, $params = null, $fetchmode = PDO::FETCH_ASSOC)
{
$this->Init($query, $params);
$result = $this->sQuery->fetchAll($fetchmode);
$this->sQuery->nextRowset();
return $result;
}

@lincanbin
Copy link
Owner

?

@dariop
Copy link
Author

dariop commented Nov 6, 2018

I was not able to call a stored procedure with any method, so I write this simple method to use CALL stored_procedures ()

@marcus-hiles
Copy link

@dariop your question is still not clear, please provide more info on what you are trying to achieve and provide the full class codes. Just the "call" function alone is a little vague, since you are calling many protected variables such as "$this->sQuery".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants