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/Region/Storage/OpenSim.DataStore.MSSQL | |
parent | Set svn:eol-style. (diff) | |
download | opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.zip opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.gz opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.bz2 opensim-SC_OLD-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/Region/Storage/OpenSim.DataStore.MSSQL')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs index ac9b741..d6c4675 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs | |||
@@ -798,7 +798,7 @@ namespace OpenSim.DataStore.MSSQL | |||
798 | private SqlCommand createUpdateCommand(string table, string pk, DataTable dt) | 798 | private SqlCommand createUpdateCommand(string table, string pk, DataTable dt) |
799 | { | 799 | { |
800 | string sql = "update " + table + " set "; | 800 | string sql = "update " + table + " set "; |
801 | string subsql = ""; | 801 | string subsql = String.Empty; |
802 | foreach (DataColumn col in dt.Columns) | 802 | foreach (DataColumn col in dt.Columns) |
803 | { | 803 | { |
804 | if (subsql.Length > 0) | 804 | if (subsql.Length > 0) |
@@ -825,7 +825,7 @@ namespace OpenSim.DataStore.MSSQL | |||
825 | private string defineTable(DataTable dt) | 825 | private string defineTable(DataTable dt) |
826 | { | 826 | { |
827 | string sql = "create table " + dt.TableName + "("; | 827 | string sql = "create table " + dt.TableName + "("; |
828 | string subsql = ""; | 828 | string subsql = String.Empty; |
829 | foreach (DataColumn col in dt.Columns) | 829 | foreach (DataColumn col in dt.Columns) |
830 | { | 830 | { |
831 | if (subsql.Length > 0) | 831 | if (subsql.Length > 0) |