If SELECT request specifies tuple count 0, no error

Bug #702397 reported by Kostja Osipov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
Fix Released
Wishlist
Damien Lefortier

Bug Description

If tuple count in SELECT packet is 0, the server does not reply with an error, but returns an empty result set.
Produce an error instead.

How to repeat:

An exemplary problematic request looks like below:

request type, 4 bytes = 17 (select)
body length, 4 bytes = 20
request id, 4 bytes = 0
namespace no, 4 bytes = 0
index_no, 4 bytes = 0
offset, 4 bytes = 0
limit, 4 bytes = MAX_INT
tuple count, 4 bytes = 0

Kostja Osipov (kostja)
Changed in tarantool:
importance: Undecided → Wishlist
status: New → Confirmed
Kostja Osipov (kostja)
description: updated
Kostja Osipov (kostja)
Changed in tarantool:
assignee: nobody → Damien Lefortier (damien-lefortier)
milestone: none → 1.3.5
status: Confirmed → In Progress
Changed in tarantool:
status: In Progress → Fix Committed
Kostja Osipov (kostja)
Changed in tarantool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.