diff options
author | Sean Dague | 2008-05-02 18:59:12 +0000 |
---|---|---|
committer | Sean Dague | 2008-05-02 18:59:12 +0000 |
commit | 1b7f1c956c86458bc0cee341ea95ee593be76703 (patch) | |
tree | ba16a52f1020567f61d8da08dd5b6e4c99697aa5 /OpenSim/Data/MSSQL | |
parent | added user appearance mapping in nhibernate (diff) | |
download | opensim-SC_OLD-1b7f1c956c86458bc0cee341ea95ee593be76703.zip opensim-SC_OLD-1b7f1c956c86458bc0cee341ea95ee593be76703.tar.gz opensim-SC_OLD-1b7f1c956c86458bc0cee341ea95ee593be76703.tar.bz2 opensim-SC_OLD-1b7f1c956c86458bc0cee341ea95ee593be76703.tar.xz |
plumb in connection string to the user database paths. mysql and mssql
just ignore this for now, but it lets us get connect strings to sqlite
and nhibernate.
Diffstat (limited to 'OpenSim/Data/MSSQL')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLUserData.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index a4c5068..d54af82 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs | |||
@@ -55,10 +55,11 @@ namespace OpenSim.Data.MSSQL | |||
55 | /// <summary> | 55 | /// <summary> |
56 | /// Loads and initialises the MySQL storage plugin | 56 | /// Loads and initialises the MySQL storage plugin |
57 | /// </summary> | 57 | /// </summary> |
58 | override public void Initialise() | 58 | override public void Initialise(string connect) |
59 | { | 59 | { |
60 | // Load from an INI file connection details | 60 | // TODO: do something with the connect string instead of |
61 | // TODO: move this to XML? | 61 | // ignoring it. |
62 | |||
62 | IniFile iniFile = new IniFile("mssql_connection.ini"); | 63 | IniFile iniFile = new IniFile("mssql_connection.ini"); |
63 | string settingDataSource = iniFile.ParseFileReadValue("data_source"); | 64 | string settingDataSource = iniFile.ParseFileReadValue("data_source"); |
64 | string settingInitialCatalog = iniFile.ParseFileReadValue("initial_catalog"); | 65 | string settingInitialCatalog = iniFile.ParseFileReadValue("initial_catalog"); |