diff options
author | Adam Frisby | 2008-01-15 02:09:55 +0000 |
---|---|---|
committer | Adam Frisby | 2008-01-15 02:09:55 +0000 |
commit | b25f9f322cdbcde7fd8c043137bf07992e5ef318 (patch) | |
tree | 7c1a5115b2849dfe388b825dd271271d347f9574 /OpenSim/Framework/Data.MySQL/MySQLDataStore.cs | |
parent | Set svn:eol-style. (diff) | |
download | opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.zip opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.gz opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.bz2 opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.xz |
* Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's
* Added Copyright headers to a bunch of files missing them
* Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLDataStore.cs')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLDataStore.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs index 8055448..26985b3 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLDataStore.cs | |||
@@ -485,7 +485,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
485 | foreach (DataColumn column in table.Columns) | 485 | foreach (DataColumn column in table.Columns) |
486 | Debug.Write(column.ColumnName + " = " + | 486 | Debug.Write(column.ColumnName + " = " + |
487 | row[column, DataRowVersion.Original] + ", "); | 487 | row[column, DataRowVersion.Original] + ", "); |
488 | Debug.WriteLine(""); | 488 | Debug.WriteLine(String.Empty); |
489 | } | 489 | } |
490 | //--- Display the current values, if there are any. | 490 | //--- Display the current values, if there are any. |
491 | if (row.HasVersion(DataRowVersion.Current)) | 491 | if (row.HasVersion(DataRowVersion.Current)) |
@@ -494,9 +494,9 @@ namespace OpenSim.Framework.Data.MySQL | |||
494 | foreach (DataColumn column in table.Columns) | 494 | foreach (DataColumn column in table.Columns) |
495 | Debug.Write(column.ColumnName + " = " + | 495 | Debug.Write(column.ColumnName + " = " + |
496 | row[column, DataRowVersion.Current] + ", "); | 496 | row[column, DataRowVersion.Current] + ", "); |
497 | Debug.WriteLine(""); | 497 | Debug.WriteLine(String.Empty); |
498 | } | 498 | } |
499 | Debug.WriteLine(""); | 499 | Debug.WriteLine(String.Empty); |
500 | } | 500 | } |
501 | } | 501 | } |
502 | } | 502 | } |
@@ -1313,7 +1313,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
1313 | private MySqlCommand createUpdateCommand(string table, string pk, DataTable dt) | 1313 | private MySqlCommand createUpdateCommand(string table, string pk, DataTable dt) |
1314 | { | 1314 | { |
1315 | string sql = "update " + table + " set "; | 1315 | string sql = "update " + table + " set "; |
1316 | string subsql = ""; | 1316 | string subsql = String.Empty; |
1317 | foreach (DataColumn col in dt.Columns) | 1317 | foreach (DataColumn col in dt.Columns) |
1318 | { | 1318 | { |
1319 | if (subsql.Length > 0) | 1319 | if (subsql.Length > 0) |
@@ -1341,7 +1341,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
1341 | private string defineTable(DataTable dt) | 1341 | private string defineTable(DataTable dt) |
1342 | { | 1342 | { |
1343 | string sql = "create table " + dt.TableName + "("; | 1343 | string sql = "create table " + dt.TableName + "("; |
1344 | string subsql = ""; | 1344 | string subsql = String.Empty; |
1345 | foreach (DataColumn col in dt.Columns) | 1345 | foreach (DataColumn col in dt.Columns) |
1346 | { | 1346 | { |
1347 | if (subsql.Length > 0) | 1347 | if (subsql.Length > 0) |