[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


http://gambaswiki.org/bugtracker/edit?object=BUG.3209&from=L21haW4-

Comment #4 by Brian G has been edited:

updated the hack so both connect usages work without error, IDE db browser/column selector  and runtime
user usage

' add this hack so that I can open the connection with a user provided password
  Try dbinit = Classes["ConnectSessionsInit"]
  If Not Error Then
    Dim sessionInit As Object = dbinit.New()
    If dbinit.Exist("ReadPassword") Then
      Object.Call(sessionInit, "ReadPassword", [Me])
    Endif
  Endif
 'end of hack

replace this into previous comment source listing



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----