aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateAssetData.cs
diff options
context:
space:
mode:
authorSean Dague2008-04-24 15:52:22 +0000
committerSean Dague2008-04-24 15:52:22 +0000
commit03c7055902d98a7cfe16b6319e1adde91a5ca9c6 (patch)
tree7d8a536245195ab7c8b5001dc0ba446dbfd99cdd /OpenSim/Data/NHibernate/NHibernateAssetData.cs
parentin theory, let you pass the mysql connection string into the (diff)
downloadopensim-SC_OLD-03c7055902d98a7cfe16b6319e1adde91a5ca9c6.zip
opensim-SC_OLD-03c7055902d98a7cfe16b6319e1adde91a5ca9c6.tar.gz
opensim-SC_OLD-03c7055902d98a7cfe16b6319e1adde91a5ca9c6.tar.bz2
opensim-SC_OLD-03c7055902d98a7cfe16b6319e1adde91a5ca9c6.tar.xz
do a max of 3 splits when first processing the nhibernate connect
strings so the ; in the db connect strings pass to the native drivers correctly
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateAssetData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs
index 740868b..c0dd322 100644
--- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs
@@ -59,7 +59,7 @@ namespace OpenSim.Data.NHibernate
59 { 59 {
60 // Split out the dialect, driver, and connect string 60 // Split out the dialect, driver, and connect string
61 char[] split = {';'}; 61 char[] split = {';'};
62 string[] parts = connect.Split(split); 62 string[] parts = connect.Split(split, 3);
63 if (parts.Length != 3) { 63 if (parts.Length != 3) {
64 // TODO: make this a real exception type 64 // TODO: make this a real exception type
65 throw new Exception("Malformed Inventory connection string '" + connect + "'"); 65 throw new Exception("Malformed Inventory connection string '" + connect + "'");