Skip to content

Selecting all records doesn't work  #83

@ErgNoor

Description

@ErgNoor

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

DatabaseError: (19, 'Invalid key part count in an exact match (expected 1, got 0)')

None of the examples from documentation work.

tnt = Connection("127.0.0.1", 3301)
tnt.select('todo') # 'todo' - space name
c.select('filters', [])

All of the above produce errors

>>> tnt.select("todo")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/tarantool/connection.py", line 659, in select
    response = self._send_request(request)
  File "/usr/lib/python2.7/site-packages/tarantool/connection.py", line 283, in _send_request
    request)
  File "/usr/lib/python2.7/site-packages/tarantool/connection.py", line 207, in _send_request_wo_reconnect
    response = Response(self, self._read_response())
  File "/usr/lib/python2.7/site-packages/tarantool/response.py", line 77, in __init__
    raise DatabaseError(self._return_code, self._return_message)
tarantool.error.DatabaseError: (19, 'Invalid key part count in an exact match (expected 1, got 0)')

It looks like this issue like #76

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions