in_ansi_set.sql 769 B

12345678910111213141516171819202122
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. PRAGMA AnsiInForEmptyOrNullableItemsCollections;
  4. SELECT
  5. 1 IN AsSet(2, 3, null), -- Nothing<Bool?>
  6. null IN SetCreate(Int32), -- false?
  7. null IN AsSet(null), -- Nothing<Bool?>
  8. null IN AsSet(1), -- Nothing<Bool?>
  9. (1, null) IN AsSet((1, 1), (2, 2)), -- Nothing<Bool?>
  10. (1, null) IN AsSet((2, 2), (3, 3)), -- false?
  11. (1, 2) IN AsSet((1, null), (2, 2)), -- Nothing<Bool?>
  12. (1, 2) IN AsSet((null, 1), (2, 1)), -- false?
  13. (1, 2) IN AsSet((1, null), (2, 1)), -- Nothing<Bool?>
  14. ;
  15. SELECT
  16. Just(1) IN AsSet(1, 2, 3), -- true?
  17. 1 IN AsSet(Just(2), Just(3)), -- false?
  18. ;