NegativeArrayIndex.sql 374 B

12345678910111213
  1. $node = Yson::Parse(@@[1;2;3;4;5;6;7]@@);
  2. SELECT
  3. Yson::YPathInt64($node, "/+1"),
  4. Yson::YPathInt64($node, "/-1"),
  5. Yson::YPathInt64($node, "/+2"),
  6. Yson::YPathInt64($node, "/-2"),
  7. Yson::YPathInt64($node, "/+6"),
  8. Yson::YPathInt64($node, "/-7"),
  9. Yson::YPathInt64($node, "/+7"),
  10. Yson::YPathInt64($node, "/-8"),
  11. Yson::YPathInt64($node, "/0");