From 3aed77bd2c5fecc2a077fdad501774b2b00001b1 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 15 Nov 2007 19:53:10 +0000 Subject: *** BIG CHANGES : REGION STORAGE MOVED : UPDATE YOUR OpenSim.ini FROM OpenSim.ini.example ** * Now moved region storage from region to application, so we have one storage per application, instead of one per region. * Changed so that the region store providers use connectionstrings, not filenames * Removed various unfit fields and properties (call me Darwin) --- OpenSim/Framework/Data.MySQL/MySQLDataStore.cs | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'OpenSim/Framework/Data.MySQL') diff --git a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs index c468414..343970e 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs @@ -36,7 +36,7 @@ namespace OpenSim.Framework.Data.MySQL * **********************************************************************/ - public void Initialise(string connectionstring, string dbname) + public void Initialise(string connectionstring) { m_dataSet = new DataSet(); @@ -307,23 +307,6 @@ namespace OpenSim.Framework.Data.MySQL } } - //private void DisplayTableMappings( MySqlDataAdapter adapter ) - //{ - // DataTableMappingCollection mappings = adapter.TableMappings; - - // foreach( DataTableMapping mapping in mappings ) - // { - // Debug.WriteLine( String.Format( "Source Table: ", mapping.SourceTable )); - - // DataColumnMappingCollection columnMappings = mapping.ColumnMappings; - - // foreach (DataColumnMapping columnMapping in columnMappings) - // { - // Debug.WriteLine( String.Format( "DataSet [{0}] <-> Source [{1}]", columnMapping.DataSetColumn, columnMapping.SourceColumn )); - // } - // } - //} - public void Commit() { if (m_connection.State != ConnectionState.Open) @@ -333,10 +316,7 @@ namespace OpenSim.Framework.Data.MySQL lock (m_dataSet) { - DisplayDataSet(m_dataSet, "Region DataSet"); - //DisplayTableMappings(m_primDataAdapter); - - // m_primDataAdapter.MissingMappingAction = MissingMappingAction.Error; + // DisplayDataSet(m_dataSet, "Region DataSet"); m_primDataAdapter.Update(m_primTable); m_shapeDataAdapter.Update(m_shapeTable); -- cgit v1.1