basis-company / tarantool-admin

MIT License
110 stars 28 forks source link

fix: deep wrapping binary string in array/map tuple fields #77

Closed d-enk closed 5 months ago

d-enk commented 5 months ago
version: "3.7"

services:
  tarantool-admin:
    image: quay.io/basis-company/tarantool-admin:0.7.11
    ports: ["8001:80"]
    environment:
      TARANTOOL_CONNECTIONS: "tnt:3301"

  tnt:
    image: tarantool/tarantool:2.11.2-ubuntu20.04
    command: sh -c 'tarantool -e "$$COMMAND"'
    ports: ["3301:3301"]

    environment:
      COMMAND: | #lua
        box.cfg({ listen = 3301 })

        box.schema.user.grant("guest", "super", nil, nil, {})

        local space = box.schema.space.create("TEST", {
          format = {
            { name = "id", type = "unsigned" },
            { name = "any", type = "any" },
          },
        })

        space:create_index("PRIMARY", {
          parts = { { field = "id", type = "unsigned" } },
        })

        space:insert({ 1, "\b\xFF\x01" })
        space:insert({ 2, { "\b\xFF\x01" } })
        space:insert({ 3, { a = "\b\xFF\x01" } })
        space:insert({ 4, { a = { "\b\xFF\x01" } } })

in 0.7.11: image

in fix: image

nekufa commented 5 months ago

@d-enk thanks, fix will be released when i'll get back to the office. docker image build and push is not automated right now

nekufa commented 5 months ago

@d-enk 0.7.12 released