check that config passed to -setOptions: is a dictionary

This commit is contained in:
Richard Frith-Macdonald 2022-06-09 07:23:30 +01:00
parent 34aec94427
commit 4f622fb975

View file

@ -3412,7 +3412,11 @@ static int poolConnections = 0;
}
[self setPassword: s];
[self setOptions: (nil == d) ? o : d];
if (nil == d && [o isKindOfClass: [NSDictionary class]])
{
d = (NSDictionary*)o;
}
[self setOptions: d];
}
NS_HANDLER
{