mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
rows affected info for postgresql
This commit is contained in:
parent
b7c8a60c19
commit
5eda39cb62
@ -109,6 +109,16 @@ const drivers = driverBases.map(driverBase => ({
|
||||
});
|
||||
|
||||
query.on('end', () => {
|
||||
const { command, rowCount } = query._result || {};
|
||||
|
||||
if (command != 'SELECT' && _.isNumber(rowCount)) {
|
||||
options.info({
|
||||
message: `${rowCount} rows affected`,
|
||||
time: new Date(),
|
||||
severity: 'info',
|
||||
});
|
||||
}
|
||||
|
||||
if (!wasHeader) {
|
||||
columns = extractPostgresColumns(query._result);
|
||||
if (columns && columns.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user