I have a very simple program where I am testing a connection to a database on another server:
MAIN
CONNECT TO "olc@dev2_net" AS "fms"
END MAIN
Name of database is olc and I have an entry in $INFORMIXDIR/etc/sqlhosts for dev2_net.
Now I'm not sure you can even do that, but I was testing to see if I could connect without specifying password. When I run at Linux command line, I get the error:
Program stopped at 'testconnect.4gl', line number 3.
SQL statement error number -951.
Incorrect password or user
candy@192.168.21.4[dev4] is not known on the database server.
SYSTEM error number 2.
No such file or directory
But if I run this in the GDC, you can see that the error occurs, but a window pops up in the GDC that says
Invalid login. Please enter the login information again.I press OK and then it asks me to login again to the GDC:
(I tried to insert images in this post but it doesn't appear to be inserting)
Here is part of the GDC log:
2017-10-17 22:01:55 Allocated pty (ospeed 38400bps, ispeed 38400bps)
2017-10-17 22:01:55 Started a shell/command
Call testconnect.main()
]
Tue Oct 17 22:01:56 2017:Test Connect (DEV4) : Terminal sent data.
Tue Oct 17 22:01:56 2017:Test Connect (DEV4) : Data: [Program stopped at 'testconnect.4gl', line number 3.
SQL st]
Tue Oct 17 22:01:56 2017:Test Connect (DEV4) : Terminal sent data.
Tue Oct 17 22:01:56 2017:Test Connect (DEV4) : Data: [atement error number -951.
Incorrect password or user
candy@192.168.21.4[dev4] is not known on the database server.
SYSTEM error number 2.
No such file or directory
]
Tue Oct 17 22:01:56 2017:Test Connect (DEV4) : Text sent corresponds to Terminal String ({Expected string "incorrect"}{Action "end terminal"}{DoItOnce "1"}{IgnoreRemainingStrings "0"}{SendResult "0"}{Restart "1"}{ClearPassword "1"}{UseMessage "1"}{Message "
Invalid login. Please enter the login information again."}{Title "Error"}{DefaultValue ""}{Command ""}{TimeOut "-1"}{StringToReturn ""}{MessageLineCount "1"})
Tue Oct 17 22:02:21 2017:Test Connect (DEV4) : Check if fgltty exists and is executable. Path=C:/Program Files/FourJs/Genero Studio/gdc/bin/fgltty.exe
Tue Oct 17 22:02:21 2017:Test Connect (DEV4) : Connect to 192.168.21.4:22 to get local network interface
Tue Oct 17 22:02:21 2017:Test Connect (DEV4) : Connected. Can close socket. Local IP is : 192.168.21.217.
So you can see that it triggers the Invalid login message.
BDL is 3.10.07 and GDC is 3.10.08.
I thought it was odd behavior that I would get an error message in GDC, and then it asks me to login again when it should have just stopped completely and disappeared.
Candy