diff options
Diffstat (limited to 'OpenSim/Framework/Data/OpenSimDatabaseConnector.cs')
-rw-r--r-- | OpenSim/Framework/Data/OpenSimDatabaseConnector.cs | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs b/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs index 155bdc1..aba9329 100644 --- a/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs +++ b/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs | |||
@@ -1,6 +1,8 @@ | |||
1 | using System.Data; | 1 | using System.Data; |
2 | using System.Data.Common; | ||
2 | using libsecondlife; | 3 | using libsecondlife; |
3 | /* | 4 | using MySql.Data.MySqlClient; |
5 | |||
4 | using TribalMedia.Framework.Data; | 6 | using TribalMedia.Framework.Data; |
5 | 7 | ||
6 | namespace OpenSim.Framework.Data | 8 | namespace OpenSim.Framework.Data |
@@ -26,5 +28,25 @@ namespace OpenSim.Framework.Data | |||
26 | return new OpenSimDataReader(reader); | 28 | return new OpenSimDataReader(reader); |
27 | } | 29 | } |
28 | } | 30 | } |
31 | |||
32 | |||
33 | public class MySQLDatabaseMapper : OpenSimDatabaseConnector | ||
34 | { | ||
35 | public MySQLDatabaseMapper(string connectionString) | ||
36 | : base(connectionString) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | public override DbConnection GetNewConnection() | ||
41 | { | ||
42 | MySqlConnection connection = new MySqlConnection(m_connectionString); | ||
43 | return connection; | ||
44 | } | ||
45 | |||
46 | public override string CreateParamName(string fieldName) | ||
47 | { | ||
48 | return "?" + fieldName; | ||
49 | } | ||
50 | } | ||
29 | } | 51 | } |
30 | */ | 52 | |