opt_try_member.sql 774 B

1234567891011121314151617181920212223
  1. /* postgres can not */
  2. /* kikimr can not */
  3. /* syntax version 1 */
  4. select
  5. TryMember(Just(<|x:1|>),"x",0),
  6. TryMember(Just(<|x:1|>),"y",0),
  7. TryMember(Just(<|x:Just(1)|>),"x",Just(0)),
  8. TryMember(Just(<|x:Just(1)|>),"y",Just(0)),
  9. TryMember(Just(<|x:Nothing(Int32?)|>),"x",Just(0)),
  10. TryMember(Just(<|x:Nothing(Int32?)|>),"y",Just(0)),
  11. TryMember(Just(<|x:1|>),"x",null),
  12. TryMember(Just(<|x:1|>),"y",null),
  13. TryMember(Just(<|x:Just(1)|>),"x",null),
  14. TryMember(Just(<|x:Just(1)|>),"y",null),
  15. TryMember(Just(<|x:Nothing(Int32?)|>),"x",null),
  16. TryMember(Just(<|x:Nothing(Int32?)|>),"y",null),
  17. TryMember(Nothing(Struct<x:Int32>?),"x",0),
  18. TryMember(Nothing(Struct<x:Int32>?),"x",null),
  19. TryMember(Nothing(Struct<x:Int32?>?),"x",Just(0)),
  20. TryMember(Nothing(Struct<x:Int32?>?),"x",null);