Error in FbConnection.ChangeDatabase
------------------------------------

                 Key: DNET-143
                 URL: http://tracker.firebirdsql.org/browse/DNET-143
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 2.5.0
            Reporter: Pavel
            Assignee: Carlos Guzman Alvarez


there is an error in FbConnection.ChangeDatabase (at least in 2.5.0 alpha1)

here is the code

try
                {
                    FbConnectionStringBuilder csb = new 
FbConnectionStringBuilder(this.connectionString);

                    /* Close current connection */
                    this.Close();

                    /* Set up the new Database */
                    csb.Database = db;
                    

                    /* Open new connection */
                    this.Open();
                }

as you see, you forgot to assign a new connection string to the current 
connection before reconnecting :)


-- 
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

        

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to