PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/lock1.q

#
text | 29 lines | 26 code | 3 blank | 0 comment | 0 complexity | 6ad819e43c7b94e6987f3218c9897ab3 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. drop table tstsrc;
  2. create table tstsrc like src;
  3. insert overwrite table tstsrc select key, value from src;
  4. SHOW LOCKS;
  5. SHOW LOCKS tstsrc;
  6. LOCK TABLE tstsrc shared;
  7. SHOW LOCKS;
  8. SHOW LOCKS tstsrc;
  9. SHOW LOCKS tstsrc extended;
  10. UNLOCK TABLE tstsrc;
  11. SHOW LOCKS;
  12. SHOW LOCKS extended;
  13. SHOW LOCKS tstsrc;
  14. lock TABLE tstsrc SHARED;
  15. SHOW LOCKS;
  16. SHOW LOCKS extended;
  17. SHOW LOCKS tstsrc;
  18. LOCK TABLE tstsrc SHARED;
  19. SHOW LOCKS;
  20. SHOW LOCKS extended;
  21. SHOW LOCKS tstsrc;
  22. UNLOCK TABLE tstsrc;
  23. SHOW LOCKS;
  24. SHOW LOCKS extended;
  25. SHOW LOCKS tstsrc;
  26. drop table tstsrc;