Renamed PgsqlDatabaseCatalogue to PgDatabaseCatalogue so name is consistend
with other related classes.
This commit is contained in:
parent
52442a145d
commit
243f1c0a42
21 changed files with 491 additions and 61 deletions
|
|
@ -170,7 +170,8 @@ void BackupDialog::on_btnStart_clicked()
|
|||
{
|
||||
ui->stdOutput->clear();
|
||||
|
||||
QString program = R"-(C:\Prog\bigsql\pg96\bin\pg_dump.exe)-";
|
||||
//QString program = R"-(C:\Prog\bigsql\pg96\bin\pg_dump.exe)-";
|
||||
QString program = "/usr/bin/pg_dump";
|
||||
QStringList arguments;
|
||||
setParams(arguments);
|
||||
|
||||
|
|
@ -228,11 +229,11 @@ void BackupDialog::on_btnStart_clicked()
|
|||
// We use the systemEnvironment as a sane default. Then we let the connection overwrite all PG variables in it.
|
||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||
m_config.writeToEnvironment(env);
|
||||
env.insert("SESSIONNAME", "Console");
|
||||
//env.insert("SESSIONNAME", "Console");
|
||||
auto p = new QProcess(this);
|
||||
ConnectTo(p);
|
||||
p->setProcessEnvironment(env);
|
||||
#ifdef _WIN32
|
||||
#ifdef WIN32
|
||||
p->setCreateProcessArgumentsModifier([] (QProcess::CreateProcessArguments *args)
|
||||
{
|
||||
args->flags |= CREATE_NEW_CONSOLE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue