From: Deepak <nal...@ya...> - 2003-02-11 18:14:53
|
Hi Guys, I recently started using .Net(Mono) and Firebird. So what I am saying might not actually be a problem. Please excuse me if there is anything wrong in what I say. When providing the ConnectionString for FbConnection I find that a recent convert from Java or someone who is looking for elegance in the string would append an extra semi-colon at the end. This throws an error(ArrayIndex....). This can easily be corrected if there is an extra if statement before Splitting with "=" in the ParseConnectionString method i.e. instead of for (int i = 0; i < elements.Length; i++) { string[] values = elements[i].Split('='); ... } it could be written as for (int i = 0; i < elements.Length; i++) { if(elements[i] != null) { string[] values = elements[i].Split('='); ... } Just thought this change wouldn't hurt but on the other hand could help a lot. Thanks, Deepak __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com |