aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs
diff options
context:
space:
mode:
authorlbsa712008-04-02 13:06:18 +0000
committerlbsa712008-04-02 13:06:18 +0000
commit667ebc8ea29ba93060eee2506f2875ab78ab6216 (patch)
treed630c9c98fdbbe901b4d941dff25e6bdc77d4772 /OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs
parentSet default terrain to complete flat terrain (at 26 height). Even flat terrai... (diff)
downloadopensim-SC_OLD-667ebc8ea29ba93060eee2506f2875ab78ab6216.zip
opensim-SC_OLD-667ebc8ea29ba93060eee2506f2875ab78ab6216.tar.gz
opensim-SC_OLD-667ebc8ea29ba93060eee2506f2875ab78ab6216.tar.bz2
opensim-SC_OLD-667ebc8ea29ba93060eee2506f2875ab78ab6216.tar.xz
* Reworked Data Framework so that MSSQL works
* Introduced uint as field type * Removed what should be superfluous Guid handling * Introduced stub MySQLDataReader if we need to fix the Guid handling anyway
Diffstat (limited to 'OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs')
-rw-r--r--OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs b/OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs
index c56b5a6..81f9631 100644
--- a/OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs
+++ b/OpenSim/Framework/Data.MSSQLMapper/MSSQLDatabaseMapper.cs
@@ -25,6 +25,7 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using System.Data.Common; 29using System.Data.Common;
29using System.Data.SqlClient; 30using System.Data.SqlClient;
30using OpenSim.Framework.Data; 31using OpenSim.Framework.Data;
@@ -44,6 +45,18 @@ namespace OpenSim.Framework.Data.MSSQLMapper
44 return connection; 45 return connection;
45 } 46 }
46 47
48 public override object ConvertToDbType(object value)
49 {
50 if( value is UInt32 )
51 {
52 UInt32 tmpVal = (UInt32) value;
53 Int64 result = Convert.ToInt64(tmpVal);
54 return result;
55 }
56
57 return base.ConvertToDbType(value);
58 }
59
47 public override string CreateParamName(string fieldName) 60 public override string CreateParamName(string fieldName)
48 { 61 {
49 return "@" + fieldName; 62 return "@" + fieldName;