aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL/PGSQLRegionData.cs
diff options
context:
space:
mode:
authorGeir Nøklebye2016-07-15 16:34:32 +0200
committerUbitUmarov2016-07-15 15:45:39 +0100
commit653b896794d884dbdb44dace81d3cf99a93c7705 (patch)
treee055e0e5375e5cb914a7a1613d0d942c0bc3a52e /OpenSim/Data/PGSQL/PGSQLRegionData.cs
parentlib omv now supports SeeAvs fields, so use it, thx Gavin Hird (diff)
downloadopensim-SC-653b896794d884dbdb44dace81d3cf99a93c7705.zip
opensim-SC-653b896794d884dbdb44dace81d3cf99a93c7705.tar.gz
opensim-SC-653b896794d884dbdb44dace81d3cf99a93c7705.tar.bz2
opensim-SC-653b896794d884dbdb44dace81d3cf99a93c7705.tar.xz
PGSQL: Update simulation data with a number of missing fields for parcels. Some of the fields should probably be migrated to type Boolean to avoid the hairy casting in the query. In addition the overall server code relies in the Replace in SQL statement that is proprietary to MySQL, so the PGSQL code is rather unsafe as it is. Should probably set a transaction on the whole operation so that if something goes wrong the database record is not zapped as it is now. PostgreSQL 9.5 has the upsert functionality which would bring the code closer to the MySQL version. This commit also has an update to PGSQLRegionData
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/PGSQL/PGSQLRegionData.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLRegionData.cs b/OpenSim/Data/PGSQL/PGSQLRegionData.cs
index a7da013..3924b7b 100644
--- a/OpenSim/Data/PGSQL/PGSQLRegionData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLRegionData.cs
@@ -26,16 +26,14 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using System.Data; 31using System.Data;
31using System.Drawing;
32using System.IO;
33using System.Reflection; 32using System.Reflection;
34using log4net; 33using log4net;
35using OpenMetaverse; 34using OpenMetaverse;
36using OpenSim.Framework; 35using OpenSim.Framework;
37using OpenSim.Region.Framework.Interfaces; 36using OpenSim.Data;
38using OpenSim.Region.Framework.Scenes;
39using RegionFlags = OpenSim.Framework.RegionFlags; 37using RegionFlags = OpenSim.Framework.RegionFlags;
40using Npgsql; 38using Npgsql;
41 39