MySQL - TestConnection

Ein Forum zum Erfahrungsaustausch und Hilfestellung in deutscher Sprache.

MySQL - TestConnection

Postby PMan » Sat Nov 06, 2010 6:54 pm

Hallo Miteinander

was passiert eigentlich bei
sError = Database.TestConnection(Driver, user, pwd, host, Option, Port)
in kbasic?

Ich bekommen beim Schließen der Applikation die Fehlermeldung
Warning: QSqlatabasePrivate::addDatabase: dublicate connection name 'kbasic_internal', old connection removed.

Ich habe mit Database.Exist getestet, ob einige Datenbanken zur Verfügung stehen, diese aber dann wieder geschlossen. Für jede getestete Datenbank erhalte ich eine der oben angegebenen Fehlermeldungen.

Wie kann ich diese Fehlermeldung unterbinden?
PMan
 
Posts: 145
Joined: Sat Jul 03, 2010 12:31 pm
Location: Switzerland

Re: MySQL - TestConnection

Postby Henning » Sat Nov 06, 2010 8:22 pm

Tested my app, and get the same error????

What have you done Bernd?? I read somewhere that you had fixed something for Bound access from a form. My guess is that destroyed something with direct access.
Just have to say it again: I hate bound access, sooner or later it *will* come back and bite you in the back. ;)

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: MySQL - TestConnection

Postby berndnoetscher » Mon Nov 08, 2010 9:01 am

Henning wrote:Tested my app, and get the same error????

What have you done Bernd?? I read somewhere that you had fixed something for Bound access from a form. My guess is that destroyed something with direct access.
Just have to say it again: I hate bound access, sooner or later it *will* come back and bite you in the back. ;)

/Henning


Sorry, I thought it has been fixed. Curious...
It is a warning message (no error) about opening and closing connections.
I will fix it with the next version.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am


Return to Deutsches Forum (in German only)

cron