You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
Version
2.1.7
What's Wrong?
If you execute multiple statements in one batch
select1; select2;
The node drivers (mysql2, mariadb) only return the 2nd select's result.
What You Expected?
Both result sets to be returned.
How to Reproduce?
Run the following nodejs code
importmysqlfrom"mysql2/promise";asyncfunctionmain(){// Create the connection to databaseconstconnection=awaitmysql.createConnection({host: "localhost",port: 9030,user: "root",password: "",database: "mysql",});// A simple SELECT querytry{const[results,fields]=awaitconnection.query(`select 1; select 2;`);console.log(results);// results contains rows returned by serverconsole.log(fields);// fields contains extra meta data about results, if available}catch(err){console.log(err);}}main();
Anything Else?
The mysql2 driver outputs the following warnings in the above example:
Warning: got packets out of order. Expected 1 but received 5
Warning: got packets out of order. Expected 2 but received 6
Warning: got packets out of order. Expected 3 but received 7
Warning: got packets out of order. Expected 4 but received 8
Warning: got packets out of order. Expected 5 but received 9
Search before asking
Version
2.1.7
What's Wrong?
If you execute multiple statements in one batch
The node drivers (mysql2, mariadb) only return the 2nd select's result.
What You Expected?
Both result sets to be returned.
How to Reproduce?
Run the following nodejs code
Anything Else?
The mysql2 driver outputs the following warnings in the above example:
Warning: got packets out of order. Expected 1 but received 5
Warning: got packets out of order. Expected 2 but received 6
Warning: got packets out of order. Expected 3 but received 7
Warning: got packets out of order. Expected 4 but received 8
Warning: got packets out of order. Expected 5 but received 9
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: