diff options
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLDataStore.cs')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLDataStore.cs | 24 |
1 files changed, 2 insertions, 22 deletions
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 | |||
36 | * | 36 | * |
37 | **********************************************************************/ | 37 | **********************************************************************/ |
38 | 38 | ||
39 | public void Initialise(string connectionstring, string dbname) | 39 | public void Initialise(string connectionstring) |
40 | { | 40 | { |
41 | m_dataSet = new DataSet(); | 41 | m_dataSet = new DataSet(); |
42 | 42 | ||
@@ -307,23 +307,6 @@ namespace OpenSim.Framework.Data.MySQL | |||
307 | } | 307 | } |
308 | } | 308 | } |
309 | 309 | ||
310 | //private void DisplayTableMappings( MySqlDataAdapter adapter ) | ||
311 | //{ | ||
312 | // DataTableMappingCollection mappings = adapter.TableMappings; | ||
313 | |||
314 | // foreach( DataTableMapping mapping in mappings ) | ||
315 | // { | ||
316 | // Debug.WriteLine( String.Format( "Source Table: ", mapping.SourceTable )); | ||
317 | |||
318 | // DataColumnMappingCollection columnMappings = mapping.ColumnMappings; | ||
319 | |||
320 | // foreach (DataColumnMapping columnMapping in columnMappings) | ||
321 | // { | ||
322 | // Debug.WriteLine( String.Format( "DataSet [{0}] <-> Source [{1}]", columnMapping.DataSetColumn, columnMapping.SourceColumn )); | ||
323 | // } | ||
324 | // } | ||
325 | //} | ||
326 | |||
327 | public void Commit() | 310 | public void Commit() |
328 | { | 311 | { |
329 | if (m_connection.State != ConnectionState.Open) | 312 | if (m_connection.State != ConnectionState.Open) |
@@ -333,10 +316,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
333 | 316 | ||
334 | lock (m_dataSet) | 317 | lock (m_dataSet) |
335 | { | 318 | { |
336 | DisplayDataSet(m_dataSet, "Region DataSet"); | 319 | // DisplayDataSet(m_dataSet, "Region DataSet"); |
337 | //DisplayTableMappings(m_primDataAdapter); | ||
338 | |||
339 | // m_primDataAdapter.MissingMappingAction = MissingMappingAction.Error; | ||
340 | 320 | ||
341 | m_primDataAdapter.Update(m_primTable); | 321 | m_primDataAdapter.Update(m_primTable); |
342 | m_shapeDataAdapter.Update(m_shapeTable); | 322 | m_shapeDataAdapter.Update(m_shapeTable); |