From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp16.mail.ru (smtp16.mail.ru [94.100.176.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 64CFB469710 for ; Wed, 18 Nov 2020 10:56:23 +0300 (MSK) From: olegrok@tarantool.org Date: Wed, 18 Nov 2020 10:56:19 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 0/2] Make uuid values comparable List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org, lvasiliev@tarantool.org Cc: tarantool-patches@dev.tarantool.org From: Oleg Babin 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(-) -- 2.29.0