21retry.mql 516 B

12345678910111213141516171819202122232425262728
  1. -- ============================================================
  2. -- retry(N) 重试测试
  3. -- ============================================================
  4. /**
  5. retry(3)
  6. **/
  7. ;
  8. -- 故意触发错误的语句,重试 3 次后仍失败
  9. select * from /test/aaa/non_exist_class_retry where dummy=1
  10. /**
  11. onerror(continue,'not exist','not find','not found')
  12. **/
  13. ;
  14. -- retry 正常语句(不应重试)
  15. /**
  16. retry(2)
  17. **/
  18. ;
  19. select count(*) from /test/aaa/test_ext where e_name='ext_001'
  20. /**
  21. output()
  22. onerror(continue)
  23. **/
  24. ;