diff options
author | lbsa71 | 2008-03-25 14:27:39 +0000 |
---|---|---|
committer | lbsa71 | 2008-03-25 14:27:39 +0000 |
commit | ba2de258f420245d07c4d194f8f8a71abe299aff (patch) | |
tree | 7292d4f76a631898ddfe765968888206d5390677 /OpenSim/Framework/Data | |
parent | Add "warnings as errors" support for nant and monodevelop to Prebuild (though... (diff) | |
download | opensim-SC-ba2de258f420245d07c4d194f8f8a71abe299aff.zip opensim-SC-ba2de258f420245d07c4d194f8f8a71abe299aff.tar.gz opensim-SC-ba2de258f420245d07c4d194f8f8a71abe299aff.tar.bz2 opensim-SC-ba2de258f420245d07c4d194f8f8a71abe299aff.tar.xz |
* Refactored out circular reference in Region.Environment <-> Framework.Data.Base
We REALLY need to get the db layer sorted soon...
Diffstat (limited to 'OpenSim/Framework/Data')
-rw-r--r-- | OpenSim/Framework/Data/OpenSimDatabaseConnector.cs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs b/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs index 2bfd6f1..809fd1e 100644 --- a/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs +++ b/OpenSim/Framework/Data/OpenSimDatabaseConnector.cs | |||
@@ -28,7 +28,6 @@ | |||
28 | using System.Data; | 28 | using System.Data; |
29 | using System.Data.Common; | 29 | using System.Data.Common; |
30 | using libsecondlife; | 30 | using libsecondlife; |
31 | using MySql.Data.MySqlClient; | ||
32 | 31 | ||
33 | using OpenSim.Framework.Data.Base; | 32 | using OpenSim.Framework.Data.Base; |
34 | 33 | ||
@@ -55,23 +54,4 @@ namespace OpenSim.Framework.Data | |||
55 | return new OpenSimDataReader(reader); | 54 | return new OpenSimDataReader(reader); |
56 | } | 55 | } |
57 | } | 56 | } |
58 | |||
59 | public class MySQLDatabaseMapper : OpenSimDatabaseConnector | ||
60 | { | ||
61 | public MySQLDatabaseMapper(string connectionString) | ||
62 | : base(connectionString) | ||
63 | { | ||
64 | } | ||
65 | |||
66 | public override DbConnection GetNewConnection() | ||
67 | { | ||
68 | MySqlConnection connection = new MySqlConnection(m_connectionString); | ||
69 | return connection; | ||
70 | } | ||
71 | |||
72 | public override string CreateParamName(string fieldName) | ||
73 | { | ||
74 | return "?" + fieldName; | ||
75 | } | ||
76 | } | ||
77 | } | 57 | } |