mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55: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']:
|
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']))
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user