mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-23 01:06:31 -06:00
Fixes #1218 - Backup table not working.
Send parameters in proper format to work it well with table backup. Thanks Fahar for reporting it.
This commit is contained in:
parent
0840e6af2d
commit
dca6951e74
@ -430,7 +430,7 @@ def create_backup_objects_job(sid):
|
||||
|
||||
for s, t in data['tables']:
|
||||
args.extend([
|
||||
'--table', driver.qtIdent(conn, s) + '.' + driver.qtIdent(conn, t)
|
||||
'--table', driver.qtIdent(conn, s, t)
|
||||
])
|
||||
|
||||
args.append(driver.qtIdent(conn, data['database']))
|
||||
|
@ -631,11 +631,9 @@ TODO LIST FOR BACKUP:
|
||||
// If selected node is Table then add it in model along with
|
||||
// its schema
|
||||
if(d._type == 'table') {
|
||||
var tables = [],
|
||||
selected_table = [];
|
||||
selected_table.push(treeInfo.schema.label)
|
||||
selected_table.push(d.label);
|
||||
this.view.model.set('tables', selected_table);
|
||||
this.view.model.set(
|
||||
'tables', [[treeInfo.schema.label, d.label]]
|
||||
);
|
||||
}
|
||||
|
||||
var self = this,
|
||||
@ -664,11 +662,11 @@ TODO LIST FOR BACKUP:
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
alertify.backup_objects(title).resizeTo('65%','60%');
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
alertify.backup_objects(title).resizeTo('65%','60%');
|
||||
}
|
||||
};
|
||||
return pgBrowser.Backup;
|
||||
|
Loading…
Reference in New Issue
Block a user