Background: Use YII2 command line mode to turn on script monitoring rabbitmq queue, when queue has order information, execute query, update operation (equivalent to PHP file write a query, update, start with command line)
Problem: There is no problem at the start of monitoring, and each time it throws an error
> Error while sending QUERY packet. PID=25370. The SQL being executed was: 一句sql语句(此sql直接执行没有错误).
Reply content:
Background: Use YII2 command line mode to turn on script monitoring rabbitmq queue, when queue has order information, execute query, update operation (equivalent to PHP file write a query, update, start with command line)
Problem: There is no problem at the start of monitoring, and each time it throws an error
> Error while sending QUERY packet. PID=25370. The SQL being executed was: 一句sql语句(此sql直接执行没有错误).
This sql
is your own writing of the original ecological sql
? Or is it a frame-by-band sql
approach? If it's your own advice, you could try it sql
with the framework. sql