Tarantool development patches archive
 help / color / mirror / Atom feed
From: Mergen Imeev via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: tsafin@tarantool.org
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v2 0/4] sql: fix description of type mismatch errors
Date: Tue, 13 Jul 2021 10:03:48 +0300	[thread overview]
Message-ID: <cover.1626159705.git.imeevma@gmail.com> (raw)

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


             reply	other threads:[~2021-07-13  7:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13  7:03 Mergen Imeev via Tarantool-patches [this message]
2021-07-13  7:03 ` [Tarantool-patches] [PATCH v2 1/4] sql: truncate values in type mismatch error Mergen Imeev via Tarantool-patches
2021-07-13  8:51   ` Timur Safin via Tarantool-patches
2021-07-13  7:03 ` [Tarantool-patches] [PATCH v2 2/4] sql: properly show " Mergen Imeev via Tarantool-patches
2021-07-13  8:51   ` Timur Safin via Tarantool-patches
2021-07-13  7:03 ` [Tarantool-patches] [PATCH v2 3/4] sql: use proper type names in error descriptions Mergen Imeev via Tarantool-patches
2021-07-13  8:51   ` Timur Safin via Tarantool-patches
2021-07-13  7:04 ` [Tarantool-patches] [PATCH v2 4/4] sql: make type mismatch errors more informative Mergen Imeev via Tarantool-patches
2021-07-13  8:51   ` Timur Safin via Tarantool-patches
2021-07-13 10:17     ` Mergen Imeev 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.1626159705.git.imeevma@gmail.com \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=imeevma@tarantool.org \
    --cc=tsafin@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2 0/4] sql: fix description of type mismatch errors' \
    /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