From 03c7055902d98a7cfe16b6319e1adde91a5ca9c6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 24 Apr 2008 15:52:22 +0000 Subject: 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 --- OpenSim/Data/NHibernate/NHibernateAssetData.cs | 2 +- OpenSim/Data/NHibernate/NHibernateInventoryData.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Data') 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 { // Split out the dialect, driver, and connect string char[] split = {';'}; - string[] parts = connect.Split(split); + string[] parts = connect.Split(split, 3); if (parts.Length != 3) { // TODO: make this a real exception type throw new Exception("Malformed Inventory connection string '" + connect + "'"); diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs index 08d9dc1..77b9b01 100644 --- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs +++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs @@ -56,7 +56,7 @@ namespace OpenSim.Data.NHibernate { // Split out the dialect, driver, and connect string char[] split = {';'}; - string[] parts = connect.Split(split); + string[] parts = connect.Split(split, 3); if (parts.Length != 3) { // TODO: make this a real exception type throw new Exception("Malformed Inventory connection string '" + connect + "'"); -- cgit v1.1