mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-11 08:30:42 +00:00
check that config passed to -setOptions: is a dictionary
This commit is contained in:
parent
34aec94427
commit
4f622fb975
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue