aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLDataStore.cs')
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLDataStore.cs78
1 files changed, 40 insertions, 38 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
index b1ab42fd..eaa7f14 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs
@@ -478,38 +478,39 @@ namespace OpenSim.Framework.Data.MySQL
478 return landDataForRegion; 478 return landDataForRegion;
479 } 479 }
480 480
481 private void DisplayDataSet(DataSet ds, string title) 481// TODO: unused
482 { 482// private void DisplayDataSet(DataSet ds, string title)
483 Debug.WriteLine(title); 483// {
484 //--- Loop through the DataTables 484// Debug.WriteLine(title);
485 foreach (DataTable table in ds.Tables) 485// //--- Loop through the DataTables
486 { 486// foreach (DataTable table in ds.Tables)
487 Debug.WriteLine("*** DataTable: " + table.TableName + "***"); 487// {
488 //--- Loop through each DataTable's DataRows 488// Debug.WriteLine("*** DataTable: " + table.TableName + "***");
489 foreach (DataRow row in table.Rows) 489// //--- Loop through each DataTable's DataRows
490 { 490// foreach (DataRow row in table.Rows)
491 //--- Display the original values, if there are any. 491// {
492 if (row.HasVersion(DataRowVersion.Original)) 492// //--- Display the original values, if there are any.
493 { 493// if (row.HasVersion(DataRowVersion.Original))
494 Debug.Write("Original Row Values ===> "); 494// {
495 foreach (DataColumn column in table.Columns) 495// Debug.Write("Original Row Values ===> ");
496 Debug.Write(column.ColumnName + " = " + 496// foreach (DataColumn column in table.Columns)
497 row[column, DataRowVersion.Original] + ", "); 497// Debug.Write(column.ColumnName + " = " +
498 Debug.WriteLine(String.Empty); 498// row[column, DataRowVersion.Original] + ", ");
499 } 499// Debug.WriteLine(String.Empty);
500 //--- Display the current values, if there are any. 500// }
501 if (row.HasVersion(DataRowVersion.Current)) 501// //--- Display the current values, if there are any.
502 { 502// if (row.HasVersion(DataRowVersion.Current))
503 Debug.Write("Current Row Values ====> "); 503// {
504 foreach (DataColumn column in table.Columns) 504// Debug.Write("Current Row Values ====> ");
505 Debug.Write(column.ColumnName + " = " + 505// foreach (DataColumn column in table.Columns)
506 row[column, DataRowVersion.Current] + ", "); 506// Debug.Write(column.ColumnName + " = " +
507 Debug.WriteLine(String.Empty); 507// row[column, DataRowVersion.Current] + ", ");
508 } 508// Debug.WriteLine(String.Empty);
509 Debug.WriteLine(String.Empty); 509// }
510 } 510// Debug.WriteLine(String.Empty);
511 } 511// }
512 } 512// }
513// }
513 514
514 public void Commit() 515 public void Commit()
515 { 516 {
@@ -1397,12 +1398,13 @@ namespace OpenSim.Framework.Data.MySQL
1397 return param; 1398 return param;
1398 } 1399 }
1399 1400
1400 private MySqlParameter createParamWithValue(string name, Type type, Object o) 1401// TODO: unused
1401 { 1402// private MySqlParameter createParamWithValue(string name, Type type, Object o)
1402 MySqlParameter param = createMySqlParameter(name, type); 1403// {
1403 param.Value = o; 1404// MySqlParameter param = createMySqlParameter(name, type);
1404 return param; 1405// param.Value = o;
1405 } 1406// return param;
1407// }
1406 1408
1407 private void SetupPrimCommands(MySqlDataAdapter da, MySqlConnection conn) 1409 private void SetupPrimCommands(MySqlDataAdapter da, MySqlConnection conn)
1408 { 1410 {