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:
Ashesh Vashi 2016-05-24 12:09:25 +05:30
parent 0840e6af2d
commit dca6951e74
2 changed files with 9 additions and 11 deletions

View File

@ -430,7 +430,7 @@ def create_backup_objects_job(sid):
for s, t in data['tables']: for s, t in data['tables']:
args.extend([ args.extend([
'--table', driver.qtIdent(conn, s) + '.' + driver.qtIdent(conn, t) '--table', driver.qtIdent(conn, s, t)
]) ])
args.append(driver.qtIdent(conn, data['database'])) args.append(driver.qtIdent(conn, data['database']))

View File

@ -631,11 +631,9 @@ TODO LIST FOR BACKUP:
// If selected node is Table then add it in model along with // If selected node is Table then add it in model along with
// its schema // its schema
if(d._type == 'table') { if(d._type == 'table') {
var tables = [], this.view.model.set(
selected_table = []; 'tables', [[treeInfo.schema.label, d.label]]
selected_table.push(treeInfo.schema.label) );
selected_table.push(d.label);
this.view.model.set('tables', selected_table);
} }
var self = this, 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; return pgBrowser.Backup;