mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
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
This commit is contained in:
@@ -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 + "'");
|
||||
|
||||
@@ -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 + "'");
|
||||
|
||||
Reference in New Issue
Block a user