in_ansi.sql 762 B

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