Skip to content

Empty error on zero rows input #377

Closed
@DifferentialOrange

Description

@DifferentialOrange
./doc/playground.lua
tarantool> crud.insert_object_many('customers', {})
---
- null
- []
...

If an empty array is passed as argument, result is nil, errs, yet errs is an empty array.

The case may seem synthetic at the first glance, but it is rather easy to get into such situation while calling CRUD from go-tarantool and spend a couple of hours trying to explore what went wrong when error is non-nil, yet empty.

Metadata

Metadata

Labels

1spbugSomething isn't workingteamE

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions