list_comp.sql 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* postgres can not */
  2. select AsTuple(
  3. AsList(1,2) < AsList(1u,3u),
  4. AsList(1,2) < AsList(1u,2u),
  5. AsList(1,2) < AsList(1u,1u),
  6. AsList(1,2) < AsList(2u,1u),
  7. AsList(1,2) < AsList(2u,3u),
  8. AsList(1,2/1) < AsList(1u,3u),
  9. AsList(1,2/1) < AsList(1u,2u),
  10. AsList(1,2/1) < AsList(1u,1u),
  11. AsList(1,2/0) < AsList(2u,3u),
  12. AsList(1,2/0) < AsList(1u,3u),
  13. );
  14. select AsTuple(
  15. AsList(1,2) <= AsList(1u,3u),
  16. AsList(1,2) <= AsList(1u,2u),
  17. AsList(1,2) <= AsList(1u,1u),
  18. AsList(1,2) <= AsList(2u,1u),
  19. AsList(1,2) <= AsList(2u,3u),
  20. AsList(1,2/1) <= AsList(1u,3u),
  21. AsList(1,2/1) <= AsList(1u,2u),
  22. AsList(1,2/1) <= AsList(1u,1u),
  23. AsList(1,2/0) <= AsList(2u,3u),
  24. AsList(1,2/0) <= AsList(1u,3u),
  25. );
  26. select AsTuple(
  27. AsList(1,2) > AsList(1u,3u),
  28. AsList(1,2) > AsList(1u,2u),
  29. AsList(1,2) > AsList(1u,1u),
  30. AsList(1,2) > AsList(2u,1u),
  31. AsList(1,2) > AsList(2u,3u),
  32. AsList(1,2/1) > AsList(1u,3u),
  33. AsList(1,2/1) > AsList(1u,2u),
  34. AsList(1,2/1) > AsList(1u,1u),
  35. AsList(1,2/0) > AsList(2u,3u),
  36. AsList(1,2/0) > AsList(1u,3u),
  37. );
  38. select AsTuple(
  39. AsList(1,2) >= AsList(1u,3u),
  40. AsList(1,2) >= AsList(1u,2u),
  41. AsList(1,2) >= AsList(1u,1u),
  42. AsList(1,2) >= AsList(2u,1u),
  43. AsList(1,2) >= AsList(2u,3u),
  44. AsList(1,2/1) >= AsList(1u,3u),
  45. AsList(1,2/1) >= AsList(1u,2u),
  46. AsList(1,2/1) >= AsList(1u,1u),
  47. AsList(1,2/0) >= AsList(2u,3u),
  48. AsList(1,2/0) >= AsList(1u,3u),
  49. );
  50. select AsTuple (
  51. AsList(1,2,3) == AsList(1u,2u),
  52. AsList(1/1,2/1) == AsList(1u,2u),
  53. AsList(1/1,2/0) == AsList(1u,2u)
  54. );
  55. select AsTuple(
  56. AsList(1,2) < AsList(1u,2u,3u),
  57. AsList(1,2) <= AsList(1u,2u,3u),
  58. AsList(1,2) > AsList(1u,2u,3u),
  59. AsList(1,2) >= AsList(1u,2u,3u),
  60. AsList(1,2,3) < AsList(1u,2u),
  61. AsList(1,2,3) <= AsList(1u,2u),
  62. AsList(1,2,3) > AsList(1u,2u),
  63. AsList(1,2,3) >= AsList(1u,2u),
  64. );