Re: demo1.ec
Posted in 2000
Jonathan Leffler wrote: > Rudy Fernandes wrote: > > Your CONNECT statement is probably failing (Connect failures do not > > respond to WHENEVER SQLERROR). Add code after your CONNECT stmt to check > > what error you are getting. > > Which version of ESQL/C are you claiming has this bug in it? > > I just tested the code shown in the attachment (with both > sqlerror and plain error) and got the same result -- a dramatic > stop. So, with CSDK 2.40.UC1 on Solaris 7, ESQL/C definitely > does handle errors from CONNECT with WHENEVER. You are right. My apologies. I've managed to get confused by my own comments in a error-handling routine (WHENEVER ERROR CALL error_chk) that allows CONNECT errors through so that an attempt on the standby server may be made before dying. Rudy Regret the delay in replying as well.