[ic] Catch database down

Marco m.mescoli at omnib.it
Mon Sep 28 17:05:25 UTC 2009


[try label=dbdown]
   [query
     type=list
     st=db
     table=my_ic_table
     sql=|SELECT COUNT(*) AS n FROM my_db_table;|]
     [list][sql-param n][/list]
   [/query]
[/try]

[catch label=dbdown]
   [/table my_ic_table connect failed/]
     my_db_table non connected, database down ?
   [/table my_ic_table connect failed/]
[/catch]

On database down i get: 'Internal Server Error' without catching.

Any idea ?
Thanks

-- 
Marco "Fino alla bara sinpara"
Marco "Up to demise we rise"



More information about the interchange-users mailing list