Closed savtrip closed 1 year ago
Thank you for the report!
cc @greg-rychlewski
Thanks for the report. I see the issue...an individual result can be either an ok_packet
record or a resultset
record and query_many
is only handling resultset
. I'm out right now but will have a fix later tonight :).
Awesome, thanks @wojtekmach and @greg-rychlewski
Hello to the amazing Elixir team,
I ran into a strange issue whilst using
MyXql.query_many/4
within an IEX session for a new feature I was testing. I raised the issue here as it seems like there is a match issue within the DBConnection module. The query actually executes successfully (verified by looking at my database) but the GenServer for the connection crashes due to the mismatch. I read the source code but I saw no obvious spot of failure, there are quite a few private functions being utilised.Versions db_connection -> 2.4.2 MyXql -> 0.6.1 MySql -> 8.0.28 Elixir -> 1.13.3
Example Query
MyXQL.query_many(:myxql, "DROP TABLE IF EXISTS `exampleTable`;", [], query_type: :text)
Line of Interest
db_connection 2.4.2) lib/db_connection.ex:652: DBConnection.execute/4
Below I added the Stack Trace from my IEX session. I only received the error when I ran a
DROP
command, theSELECT
command ran fine.Thanks guys!