diff options
Diffstat (limited to 'OpenSim/Data/PGSQL/PGSQLRegionData.cs')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLRegionData.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLRegionData.cs b/OpenSim/Data/PGSQL/PGSQLRegionData.cs index 8a46559..f3e4064 100644 --- a/OpenSim/Data/PGSQL/PGSQLRegionData.cs +++ b/OpenSim/Data/PGSQL/PGSQLRegionData.cs | |||
@@ -206,7 +206,7 @@ namespace OpenSim.Data.PGSQL | |||
206 | 206 | ||
207 | DataTable schemaTable = result.GetSchemaTable(); | 207 | DataTable schemaTable = result.GetSchemaTable(); |
208 | foreach (DataRow row in schemaTable.Rows) | 208 | foreach (DataRow row in schemaTable.Rows) |
209 | m_ColumnNames.Add(row["ColumnName"].ToString()); | 209 | m_ColumnNames.Add(row["column_name"].ToString()); |
210 | } | 210 | } |
211 | 211 | ||
212 | foreach (string s in m_ColumnNames) | 212 | foreach (string s in m_ColumnNames) |
@@ -376,7 +376,7 @@ namespace OpenSim.Data.PGSQL | |||
376 | 376 | ||
377 | private List<RegionData> Get(int regionFlags, UUID scopeID) | 377 | private List<RegionData> Get(int regionFlags, UUID scopeID) |
378 | { | 378 | { |
379 | string sql = "SELECT * FROM " + m_Realm + " WHERE (flags & " + regionFlags.ToString() + ") <> 0"; | 379 | string sql = "SELECT * FROM " + m_Realm + " WHERE (\"flags\" & " + regionFlags.ToString() + ") <> 0"; |
380 | if (scopeID != UUID.Zero) | 380 | if (scopeID != UUID.Zero) |
381 | sql += " AND \"ScopeID\" = :scopeID"; | 381 | sql += " AND \"ScopeID\" = :scopeID"; |
382 | 382 | ||