aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.SQLite/SQLiteBase.cs')
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteBase.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteBase.cs b/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
index 2e8d341..9131a41 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteBase.cs
@@ -135,9 +135,12 @@ namespace OpenSim.Framework.Data.SQLite
135 subsql += ",\n"; 135 subsql += ",\n";
136 } 136 }
137 subsql += col.ColumnName + " " + sqliteType(col.DataType); 137 subsql += col.ColumnName + " " + sqliteType(col.DataType);
138 if (col == dt.PrimaryKey[0]) 138 if (dt.PrimaryKey.Length > 0)
139 { 139 {
140 subsql += " primary key"; 140 if (col == dt.PrimaryKey[0])
141 {
142 subsql += " primary key";
143 }
141 } 144 }
142 } 145 }
143 sql += subsql; 146 sql += subsql;