From: Mergen Imeev via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: v.shpilevoy@tarantool.org
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v1 0/2] Fix explicit casts
Date: Wed, 21 Jul 2021 18:10:19 +0300 [thread overview]
Message-ID: <cover.1626880058.git.imeevma@gmail.com> (raw)
This patch fixes the explicit cast to comply with the new rules. According to
these rules, BOOLEAN and VARBINARY can no longer be cast to numeric types.
https://github.com/tarantool/tarantool/issues/4470
https://github.com/tarantool/tarantool/tree/imeevma/gh-4470-fix-explicit-cast
Mergen Imeev (2):
sql: disallow explicit cast of BOOLEAN to number
sql: disallow explicit cast of VARBINARY to number
src/box/sql/mem.c | 107 +++--------
test/sql-tap/cast.test.lua | 180 ++++++++++++++++--
test/sql-tap/cse.test.lua | 18 +-
test/sql-tap/e_select1.test.lua | 3 +-
...-4766-wrong-cast-from-blob-to-int.test.lua | 40 ----
test/sql-tap/in1.test.lua | 17 +-
test/sql-tap/misc3.test.lua | 2 +-
test/sql-tap/numcast.test.lua | 10 +-
test/sql/boolean.result | 71 +++----
test/sql/boolean.test.sql | 13 +-
test/sql/types.result | 14 +-
11 files changed, 271 insertions(+), 204 deletions(-)
delete mode 100755 test/sql-tap/gh-4766-wrong-cast-from-blob-to-int.test.lua
--
2.25.1
next reply other threads:[~2021-07-21 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 15:10 Mergen Imeev via Tarantool-patches [this message]
2021-07-21 15:10 ` [Tarantool-patches] [PATCH v1 1/2] sql: disallow explicit cast of BOOLEAN to number Mergen Imeev via Tarantool-patches
2021-07-26 20:11 ` Vladislav Shpilevoy via Tarantool-patches
2021-07-21 15:10 ` [Tarantool-patches] [PATCH v1 2/2] sql: disallow explicit cast of VARBINARY " Mergen Imeev via Tarantool-patches
2021-07-26 20:12 ` Vladislav Shpilevoy via Tarantool-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1626880058.git.imeevma@gmail.com \
--to=tarantool-patches@dev.tarantool.org \
--cc=imeevma@tarantool.org \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v1 0/2] Fix explicit casts' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox