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.SQLite/SQLiteBase.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.SQLite/SQLiteBase.cs')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteBase.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteBase.cs b/OpenSim/Framework/Data.SQLite/SQLiteBase.cs index 9131a41..87d63a5 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteBase.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteBase.cs | |||
@@ -98,7 +98,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
98 | protected static SqliteCommand createUpdateCommand(string table, string pk, DataTable dt) | 98 | protected static SqliteCommand createUpdateCommand(string table, string pk, DataTable dt) |
99 | { | 99 | { |
100 | string sql = "update " + table + " set "; | 100 | string sql = "update " + table + " set "; |
101 | string subsql = ""; | 101 | string subsql = String.Empty; |
102 | foreach (DataColumn col in dt.Columns) | 102 | foreach (DataColumn col in dt.Columns) |
103 | { | 103 | { |
104 | if (subsql.Length > 0) | 104 | if (subsql.Length > 0) |
@@ -126,7 +126,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
126 | protected static string defineTable(DataTable dt) | 126 | protected static string defineTable(DataTable dt) |
127 | { | 127 | { |
128 | string sql = "create table " + dt.TableName + "("; | 128 | string sql = "create table " + dt.TableName + "("; |
129 | string subsql = ""; | 129 | string subsql = String.Empty; |
130 | foreach (DataColumn col in dt.Columns) | 130 | foreach (DataColumn col in dt.Columns) |
131 | { | 131 | { |
132 | if (subsql.Length > 0) | 132 | if (subsql.Length > 0) |