-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Commands out of sync #2430
Comments
I don't quite get what your example is trying to achieve? Why the second |
PDO supports it seems http://php.net/manual/en/pdostatement.closecursor.php I haven't looked if would be possible for mysqli driver to support it. How close do we follow PDO in these cases? |
@kimhemsoe we (should) support what it is defined in our interface contracts (as much as possible). Looks like we adopted the contract from PDO here, so basically it means we should support it where possible. I would suggest adding a failing test case for this is DBAL first and then start to fix the implementations. |
👍 |
Must have been fixed by #2546. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
when running the following code I get this error.
If
$stmt1
is only executed once, the error does not occur. My guess is, that is is related to$this->_stmt->store_result()
, which is only called the first time whenMysqliStatement::execute
is executed, because the second time$this->_columnNames
is initialised (see. Doctrine\DBAL\Driver\Mysqli\MysqliStatement).In commits 10a96cc and d00511c it was changed when
store_result()
is called. Before these commits, it was called when$this->_columnNames
was initialised, now it is only called when$this->_columnNames
is being initialised.The main question is, was this intentionally and, is there a way to circumvent the problem?
No, closing the
$stmt1
after the second execute is not really an option.We are using doctrine/dbal 2.5.4 on PHP 5.4.45 with MySQL 5.5.
The text was updated successfully, but these errors were encountered: