[Tarantool-patches] [PATCH v2 0/3] Fix explicit casts
imeevma at tarantool.org
imeevma at tarantool.org
Tue Jul 27 14:31:30 MSK 2021
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
Changes in v2:
- Change of str_to_bool() were moved in new patch.
Mergen Imeev (3):
sql: disallow explicit cast of BOOLEAN to number
sql: disallow explicit cast of VARBINARY to number
sql: fix STRING to BOOLEAN explicit cast
.../unreleased/gh-4470-explicit-cast.md | 3 +
src/box/sql/mem.c | 98 +++------
test/sql-tap/cast.test.lua | 186 +++++++++++++++---
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 | 18 +-
test/sql/boolean.result | 71 +++----
test/sql/boolean.test.sql | 13 +-
test/sql/types.result | 14 +-
12 files changed, 266 insertions(+), 217 deletions(-)
create mode 100644 changelogs/unreleased/gh-4470-explicit-cast.md
delete mode 100755 test/sql-tap/gh-4766-wrong-cast-from-blob-to-int.test.lua
--
2.25.1
More information about the Tarantool-patches
mailing list