Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v2 0/4] sql: fix description of type mismatch error
@ 2021-07-05 15:27 Mergen Imeev via Tarantool-patches
  2021-07-05 15:27 ` [Tarantool-patches] [PATCH v2 1/4] sql: truncate values in " Mergen Imeev via Tarantool-patches
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Mergen Imeev via Tarantool-patches @ 2021-07-05 15:27 UTC (permalink / raw)
  To: v.shpilevoy; +Cc: tarantool-patches

After this patch-set value and its type always will be printed in description of
type mismatch error. 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 error 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 error more informative

 .../type-mistmatch-error-description.md       |    3 +
 src/box/sql/func.c                            |   12 +-
 src/box/sql/mem.c                             |   68 +-
 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              |  106 +-
 test/sql-tap/tkt-80e031a00f.test.lua          |    8 +-
 test/sql-tap/tkt-9a8b09f8e6.test.lua          |   20 +-
 test/sql-tap/uuid.test.lua                    |  124 +-
 test/sql/boolean.result                       | 1532 ++++++++---------
 test/sql/integer-overflow.result              |    4 +-
 test/sql/persistency.result                   |    2 +-
 test/sql/types.result                         |  176 +-
 23 files changed, 1131 insertions(+), 1026 deletions(-)
 create mode 100644 changelogs/unreleased/type-mistmatch-error-description.md

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-07-12 21:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 15:27 [Tarantool-patches] [PATCH v2 0/4] sql: fix description of type mismatch error Mergen Imeev via Tarantool-patches
2021-07-05 15:27 ` [Tarantool-patches] [PATCH v2 1/4] sql: truncate values in " Mergen Imeev via Tarantool-patches
2021-07-07 22:09   ` Vladislav Shpilevoy via Tarantool-patches
2021-07-12  8:50     ` Mergen Imeev via Tarantool-patches
2021-07-05 15:27 ` [Tarantool-patches] [PATCH v2 2/4] sql: properly show " Mergen Imeev via Tarantool-patches
2021-07-07 22:09   ` Vladislav Shpilevoy via Tarantool-patches
2021-07-12  8:56     ` Mergen Imeev via Tarantool-patches
2021-07-05 15:27 ` [Tarantool-patches] [PATCH v2 3/4] sql: use proper type names in error descriptions Mergen Imeev via Tarantool-patches
2021-07-05 15:27 ` [Tarantool-patches] [PATCH v2 4/4] sql: make type mismatch error more informative Mergen Imeev via Tarantool-patches
2021-07-07 22:10   ` Vladislav Shpilevoy via Tarantool-patches
2021-07-12  8:58     ` Mergen Imeev via Tarantool-patches
2021-07-12 21:38 ` [Tarantool-patches] [PATCH v2 0/4] sql: fix description of type mismatch error Vladislav Shpilevoy via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox