affected rows info for MySQL & MariaDB #361

This commit is contained in:
Jan Prochazka 2022-09-08 10:51:06 +02:00
parent 51101d91ea
commit b7c8a60c19

View File

@ -89,7 +89,7 @@ const drivers = driverBases.map(driverBase => ({
};
const handleRow = row => {
if (row && row.constructor && row.constructor.name == 'OkPacket') {
if (row && row.constructor && (row.constructor.name == 'OkPacket' || row.constructor.name == 'ResultSetHeader')) {
options.info({
message: `${row.affectedRows} rows affected`,
time: new Date(),