Closed ErgNoor closed 7 years ago
Same here. Saw that #76 was closed, but still can't perform empty select.
In order to select all records from space do:
tnt = tarantool.connect("localhost", 3322)
sp = tnt.space('lalala') # lalala - space name
n_list = sp.select(index=0, iterator=ITERATOR_ALL)
Everything should works fine on latest 0.5.5 tarantool config:
[± |master ↑2 ?:1 ✗|] → cat 1.lua
box.cfg{
listen = 3310,
}
local sp = box.schema.create_space('help', {})
sp:create_index('pr', {
type = 'hash'
})
sp:insert{1, 2, 4}
sp:insert{2, 3, 4}
box.schema.user.grant('guest', 'read,write', 'space', 'help')
python+output
In [27]: a = tarantool.connect('localhost', 3310)
In [28]: b = a.space(512)
In [29]: b.select()
Out[29]:
- [1, 2, 4]
- [2, 3, 4]
In [30]: b.select(index=0)
Out[30]:
- [1, 2, 4]
- [2, 3, 4]
Feel free to reopen this ticket in case you still have problems with this select
Tarantool 1.7.1-179-g1c01afd tarantool-python 0.5.4 python: 2.7.12 + 3.5.2
Can't select all records without specifying a key - raises
None of the examples from documentation work.
All of the above produce errors
It looks like this issue like #76