Changeset 7107 for trunk/MagicSoft/Mars/msql/MSQLServer.cc
- Timestamp:
- 05/30/05 17:44:24 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msql/MSQLServer.cc
r4877 r7107 542 542 TString user; 543 543 TString pass; 544 TString db; 544 545 545 546 if (prefix) … … 548 549 user = env.GetValue(Form("%s.User", prefix), ""); 549 550 pass = env.GetValue(Form("%s.Password", prefix), ""); 551 db = env.GetValue(Form("%s.Database", prefix), ""); 550 552 } 551 553 if (url.IsNull()) … … 555 557 if (pass.IsNull()) 556 558 pass = env.GetValue("Password", ""); 559 if (db.IsNull()) 560 db = env.GetValue("Database", ""); 557 561 558 562 if (user.IsNull() && pass.IsNull()) … … 566 570 567 571 Init(url, user, pass); 572 573 if (IsConnected() && !db.IsNull()) 574 SelectDataBase(db); 568 575 } 569 576
Note:
See TracChangeset
for help on using the changeset viewer.