mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 19:56:00 +00:00
affected rows info for MySQL & MariaDB #361
This commit is contained in:
@@ -89,7 +89,7 @@ const drivers = driverBases.map(driverBase => ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleRow = row => {
|
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({
|
options.info({
|
||||||
message: `${row.affectedRows} rows affected`,
|
message: `${row.affectedRows} rows affected`,
|
||||||
time: new Date(),
|
time: new Date(),
|
||||||
|
|||||||
Reference in New Issue
Block a user