[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3209: When using db2, and basing the connection for the Datasource on the connection1 it fails when password is required
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3209: When using db2, and basing the connection for the Datasource on the connection1 it fails when password is required
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Sat, 12 Sep 2026 19:09:20 GMT
- To: brian@xxxxxxxxxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3209&from=L21haW4- Comment #9 by Brian G: Ok it does not work, because the connection is somehow being triggered to be opened during the app initialization, before the datasource is instantiated. So the open happens early, that is why I added the callback from the db.db2 open , it is the key. If there was a way for the connect object to raise an event, that waited for the event completion, but I fear even that would not work because one would have to - inside the program try to attach to the connection. but that would already be too late!!! See attached image for error that occurred. What we are trying to fix is using the connection from the ide at runtime and it somehow seems complicated. Maybe some way for the app _init to call the connection to enable and set info before the connect init occurs but after the connect object is created? ---------------------------------------------------------------------------- Attachment: Screenshot at 2026-09-12 11-57-52.png ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
| [Gambas-bugtracker] Bug #3209: When using db2, and basing the connection for the Datasource on the connection1 it fails when password is required | <bugtracker@xxxxxxxxxxxxxx> |