Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in FbConnection.ChangeDatabase [DNET143] #153

Closed
firebird-automations opened this issue Dec 6, 2007 · 5 comments
Closed

Error in FbConnection.ChangeDatabase [DNET143] #153

firebird-automations opened this issue Dec 6, 2007 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Pavel (chpasha)

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

Commits: 3eb2393

@firebird-automations
Copy link
Author

Modified by: @cincuranet

assignee: Carlos Guzman Alvarez [ carlosga_fb ] => Jiri Cincura [ cincura_net ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

r.446

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.0 [ 10170 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Version: 2.5.0 Alpha 1 [ 10230 ]

Version: 2.5.0 [ 10170 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants