24timeout.mql 553 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- ============================================================
  2. -- timeout(D) 超时控制测试
  3. -- ============================================================
  4. -- 1. timeout 5 秒 - 正常查询应在超时前完成
  5. /**
  6. timeout(5s)
  7. **/
  8. ;
  9. select count(*) from /test/aaa/test_ext
  10. /**
  11. output()
  12. **/
  13. ;
  14. -- 2. timeout 很短 - 30ms
  15. /**
  16. timeout(30ms)
  17. **/
  18. ;
  19. select count(*) from /test/aaa/test_ext
  20. /**
  21. output()
  22. **/
  23. ;
  24. -- 3. timeout 1 分钟(较长超时)
  25. /**
  26. timeout(1m)
  27. **/
  28. ;
  29. select * from /test/aaa/test_ext where e_name='ext_001'
  30. /**
  31. output()
  32. **/
  33. ;