amphp / mysql

An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.
Other
358 stars 63 forks source link

Transaction. Deadlock #68

Closed melodi-c closed 6 years ago

melodi-c commented 6 years ago

Hello! I get a fatal error, when the Deadlock happens I use Transaction class, with Connection class such problem is not present

I use 0.3.1 release

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Amp\Mysql\DataTypes::decodeBinary() must be of the type integer, null given, called in /application/vendor/amphp/mysql/lib/Internal/Processor.php on line 979 and defined in /application/vendor/amphp/mysql/lib/DataTypes.php:80
Stack trace:
#0 /application/vendor/amphp/mysql/lib/Internal/Processor.php(979): Amp\Mysql\DataTypes::decodeBinary(NULL, '\x04#40001Deadlock...', NULL)
#1 /application/vendor/amphp/mysql/lib/Internal/Processor.php(1253): Amp\Mysql\Internal\Processor->handleBinaryResultsetRow('\xFF\xBD\x04#40001Deadlo...')
#2 /application/vendor/amphp/mysql/lib/Internal/Processor.php(240): Amp\Mysql\Internal\Processor->parsePayload('\xFF\xBD\x04#40001Deadlo...')
#3 /application/vendor/amphp/mysql/lib/Internal/Processor.php(216): Amp\Mysql\Internal\Processor->processData(Array)
#4 [internal function]: Amp\Mysql\Internal\Processor->read()
#5 /application/vendor/amphp/amp/lib/Coroutine.php(74): Generator->send('\x01\x00\x00\x01\x04C\x00\x00\x02\x03def\x11m...')
#6 /ap in /application/vendor/amphp/mysql/lib/DataTypes.php on line 80