Not providing DataSource to connection now causes error
-------------------------------------------------------

                 Key: DNET-912
                 URL: http://tracker.firebirdsql.org/browse/DNET-912
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 7.1.0.0
         Environment: Windows 10
            Reporter: Greg Cobb
            Assignee: Jiri Cincura
            Priority: Minor


I have some code that broke after updating to 7.1.1 from 6.5.  I have a 
program, a custom installer application we wrote, that is only ever run on the 
same computer where Firebird is installed.  Previously because the application 
already had verified that it was being run on the server, I didn't bother to 
specify that the DataSource property on FbConnectionStringBuilder should be set 
to localhost.  After updating to 7.1.1, this lack of providing the DataSource 
explicitly broke our application.  I am sorry, but I have not reverted back to 
6.5 to prove whether the FbConnectionStringBuilder is the one forgetting to 
specify that the DataSource should be localhost by default or whether it is 
instead the FbConnection class that can no longer handle not being provided a 
DataSource. 

Error Message:

An invalid connection string argument has been supplied or a required 
connection string argument has not been supplied.

It is my opinion that this probably should be something where you probably want 
to keep applications that did not provide the DataSource from breaking when 
they update to the latest ADO.NET driver.  I know that in most scenarios you 
will want to provide a DataSource, but localhost seems to have been the default 
up until now and that is probably a pretty safe bet if one was not provided.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to