Different query result under transaction
xpader opened this issue · comments
Pader commented
In transaction example use execute()
to do a query and get result, not query()
:
mysql/examples/6-transaction.php
Lines 20 to 24 in f14d62f
When change to query()
I get this error:
Error: Call to undefined method Amp\Mysql\Internal\ResultProxy::advance()
I found that execute()
return Amp\Mysql\PooledResultSet
, but query()
return Amp\Mysql\Internal\ResultProxy
.
But in non-transaction query, the query()
and execute()
always return 'Amp\Mysql\PooledResultSet`.
Is that a problem?