[Tarantool-patches] [PATCH v2 0/2] Make uuid values comparable

olegrok at tarantool.org olegrok at tarantool.org
Wed Nov 18 10:56:19 MSK 2020

From: Oleg Babin <babinoleg at mail.ru>

This patchset makes uuid values comparable.

The first one allows
to compare only uuid values. It's just define lt and le methods
for uuid values.

The second one allows to compare uuid values with string
representations of uuid. Just note that this patch breaks backward
compatibility - before all attempts to check equality with
non-uuid values returned false. Currently it's not so.
It we want do that this patch could be omitted.

Issue: https://github.com/tarantool/tarantool/issues/5511
Branch: https://github.com/tarantool/tarantool/tree/olegrok/5511-uuid-cmp-v2

Changes with v1:
  - Use static_alloc when string is converted to uuid to compare
  - Style fixes
  - Extend "eq" for comparison with string
  - Split patch in two parts

Oleg Babin (2):
  uuid: support comparison of uuid values in Lua
  uuid: support uuid comparison with strings

 src/exports.h          |   1 +
 src/lua/uuid.lua       |  52 ++++++++++++++-
 test/app/uuid.result   | 148 +++++++++++++++++++++++++++++++++++++++++
 test/app/uuid.test.lua |  56 ++++++++++++++++
 4 files changed, 255 insertions(+), 2 deletions(-)


More information about the Tarantool-patches mailing list