aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQLMapper
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.MySQLMapper
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.MySQLMapper')
-rw-r--r--OpenSim/Framework/Data.MySQLMapper/MySQLDataReader.cs15
-rw-r--r--OpenSim/Framework/Data.MySQLMapper/MySQLDatabaseMapper.cs7
2 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MySQLMapper/MySQLDataReader.cs b/OpenSim/Framework/Data.MySQLMapper/MySQLDataReader.cs
new file mode 100644
index 0000000..9fd50f6
--- /dev/null
+++ b/OpenSim/Framework/Data.MySQLMapper/MySQLDataReader.cs
@@ -0,0 +1,15 @@
1using System;
2using System.Collections.Generic;
3using System.Data;
4using System.Text;
5using OpenSim.Framework.Data.Base;
6
7namespace OpenSim.Framework.Data.MySQLMapper
8{
9 public class MySQLDataReader : OpenSimDataReader
10 {
11 public MySQLDataReader(IDataReader source) : base(source)
12 {
13 }
14 }
15}
diff --git a/OpenSim/Framework/Data.MySQLMapper/MySQLDatabaseMapper.cs b/OpenSim/Framework/Data.MySQLMapper/MySQLDatabaseMapper.cs
index ae58f00..3f5b18f 100644
--- a/OpenSim/Framework/Data.MySQLMapper/MySQLDatabaseMapper.cs
+++ b/OpenSim/Framework/Data.MySQLMapper/MySQLDatabaseMapper.cs
@@ -25,9 +25,11 @@
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.Data;
28using System.Data.Common; 29using System.Data.Common;
29using MySql.Data.MySqlClient; 30using MySql.Data.MySqlClient;
30using OpenSim.Framework.Data; 31using OpenSim.Framework.Data;
32using OpenSim.Framework.Data.Base;
31 33
32namespace OpenSim.Framework.Data.MySQLMapper 34namespace OpenSim.Framework.Data.MySQLMapper
33{ 35{
@@ -48,5 +50,10 @@ namespace OpenSim.Framework.Data.MySQLMapper
48 { 50 {
49 return "?" + fieldName; 51 return "?" + fieldName;
50 } 52 }
53
54 public override BaseDataReader CreateReader(IDataReader reader)
55 {
56 return new MySQLDataReader( reader );
57 }
51 } 58 }
52} \ No newline at end of file 59} \ No newline at end of file