mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
affected rows info for MySQL & MariaDB #361
This commit is contained in:
parent
51101d91ea
commit
b7c8a60c19
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user