[Tarantool-patches] [PATCH v2 0/4] sql: fix description of type mismatch errors
imeevma at tarantool.org
imeevma at tarantool.org
Tue Jul 13 10:03:48 MSK 2021
After this patch-set value and its type always will be printed in description of
type mismatch errors. Currently, in some cases type of value is printed instead
of value.
https://github.com/tarantool/tarantool/issues/6176
https://github.com/tarantool/tarantool/tree/imeevma/gh-6176-fix-type-mismatch-error
Changes in v2:
- STRING and UUID value now printed in single quotes.
- Description of type mismatch errors now contain both type and value.
Mergen Imeev (4):
sql: truncate values in type mismatch error
sql: properly show values in type mismatch error
sql: use proper type names in error descriptions
sql: make type mismatch errors more informative
.../gh-6176-type-mistmatch-description.md | 4 +
src/box/sql/func.c | 25 +-
src/box/sql/mem.c | 65 +-
src/box/sql/mem.h | 6 +-
src/box/sql/vdbe.c | 19 +-
test/sql-tap/autoinc.test.lua | 4 +-
test/sql-tap/cast.test.lua | 20 +-
test/sql-tap/func.test.lua | 8 +-
...-4766-wrong-cast-from-blob-to-int.test.lua | 9 +-
.../gh-5913-segfault-on-select-uuid.test.lua | 4 +-
test/sql-tap/index1.test.lua | 4 +-
test/sql-tap/numcast.test.lua | 4 +-
test/sql-tap/position.test.lua | 16 +-
test/sql-tap/select1.test.lua | 6 +-
test/sql-tap/select5.test.lua | 2 +-
test/sql-tap/sql-errors.test.lua | 114 +-
test/sql-tap/tkt-80e031a00f.test.lua | 8 +-
test/sql-tap/tkt-9a8b09f8e6.test.lua | 20 +-
test/sql-tap/uuid.test.lua | 126 +-
test/sql/boolean.result | 1534 ++++++++---------
test/sql/integer-overflow.result | 4 +-
test/sql/persistency.result | 2 +-
test/sql/types.result | 178 +-
23 files changed, 1144 insertions(+), 1038 deletions(-)
create mode 100644 changelogs/unreleased/gh-6176-type-mistmatch-description.md
--
2.25.1
More information about the Tarantool-patches
mailing list