[Gambas-user] the database connection never errors

Benoit Minisini gambas at ...1...
Wed Dec 28 12:07:24 CET 2005


On Wednesday 28 December 2005 10:32, johnf wrote:
> Hi,
> Dim myconn as Connection
>   WITH myconn
>   .Type = TypeDataBase.Text
>   '  "postgresql"
>   .Host = host.Text
>
>   .Login = username.Text
>
>   .Password = password.Text
>
>   .Name = DataBase.Text
>
> END WITH
> TRY myconn.Open()
> IF ERROR THEN PRINT "Database cannot be opened. Error =:"; Error.Text
>
>
> The TRY opens even if I pass bad infomation in the text fields.  It never
> errors.   Am I doing something wrong?  I notice that the database demo also
> never errors.  Suse 10.0 Gambas 1.9.22
> John
>

Strange... I get errors there!

What are the values of the MyConn properties exactly? I don't need 
Password :-)

And did you try with the database manager?

-- 
Benoit Minisini





More information about the User mailing list