Changeset 7107


Ignore:
Timestamp:
05/30/05 17:44:24 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msql/MSQLServer.cc

    r4877 r7107  
    542542    TString user;
    543543    TString pass;
     544    TString db;
    544545
    545546    if (prefix)
     
    548549        user = env.GetValue(Form("%s.User", prefix),     "");
    549550        pass = env.GetValue(Form("%s.Password", prefix), "");
     551        db   = env.GetValue(Form("%s.Database", prefix), "");
    550552    }
    551553    if (url.IsNull())
     
    555557    if (pass.IsNull())
    556558        pass = env.GetValue("Password", "");
     559    if (db.IsNull())
     560        db = env.GetValue("Database", "");
    557561
    558562    if (user.IsNull() && pass.IsNull())
     
    566570
    567571    Init(url, user, pass);
     572
     573    if (IsConnected() && !db.IsNull())
     574        SelectDataBase(db);
    568575}
    569576
Note: See TracChangeset for help on using the changeset viewer.