0.errinfo.mql 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- { onerror(continue) scope(file) loop(1) }
  2. ;
  3. delete from /test/raise_error with version
  4. -- { onerror(continue) noerrinfo() }
  5. ;
  6. drop class if exists /test/raise_error;
  7. create class if not exists /test/raise_error (
  8. zxid varchar "zxid",
  9. zxname varchar "zxname",
  10. msg varchar "msg",
  11. tally int "tally",
  12. keys(zxid)
  13. );
  14. insert into /test/raise_error (zxid,zxname,msg,tally) values('{%d,mqli}', '{%d,mqli}', '{%d,mqli}: ...32 Bytes...',1)
  15. on conflict
  16. update tally = tally + 1
  17. -- { onerror(continue) }
  18. ;
  19. -- insert into /test/raise_error (zxid,zxname,msg) values('{%d,mqli}', '{%d,mqli}', '{%d,mqli}: ...32 Bytes...')
  20. -- on conflict
  21. -- update tally = tally + 1
  22. -- -- { onerror(continue) sleep(1s) }
  23. -- ;
  24. -- insert into /test/raise_error (zxid,zxname,msg) values('{%d,mqli}', '{%d,mqli}', '{%d,mqli}: ...32 Bytes...')
  25. -- on conflict
  26. -- update tally = tally + 1
  27. -- -- { onerror(continue) }
  28. -- ;
  29. -- { onerror(continue) sleep(1s) }
  30. ;
  31. select zxid,zxname,msg,tally from /test/raise_error refresh
  32. -- { output() }
  33. ;