From: Mergen Imeev via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: vdavydov@tarantool.org Cc: tarantool-patches@dev.tarantool.org Subject: [Tarantool-patches] [PATCH v1 00/10] Check types of SQL built-in functions arguments Date: Fri, 13 Aug 2021 06:17:03 +0300 [thread overview] Message-ID: <cover.1628824421.git.imeevma@gmail.com> (raw) This patch introduces static and dynamic type checks for SQL built-in functions. https://github.com/tarantool/tarantool/issues/6105 https://github.com/tarantool/tarantool/tree/imeevma/gh-6105-properly-check-funcs-args-types Mergen Imeev (10): sql: modify signature of TRIM() sql: rework SQL built-in functions hash table sql: check number of arguments during parsing sql: static type check for SQL built-in functions sql: runtime type check for SQL built-in functions sql: enable types checking for some functions sql: fix result type of min() and max() functions sql: check argument types of sum(), avg(), total() sql: fix quote() function sql: arguments check for string value functions src/box/sql/expr.c | 36 +- src/box/sql/func.c | 1357 +++++++---------- src/box/sql/mem.c | 2 +- src/box/sql/parse.y | 36 +- src/box/sql/prepare.c | 2 +- src/box/sql/resolve.c | 44 +- src/box/sql/select.c | 10 +- src/box/sql/sqlInt.h | 13 + test/sql-tap/aggnested.test.lua | 8 +- test/sql-tap/badutf1.test.lua | 34 +- test/sql-tap/built-in-functions.test.lua | 593 +++++++ test/sql-tap/coalesce.test.lua | 2 +- test/sql-tap/cse.test.lua | 8 +- test/sql-tap/distinctagg.test.lua | 3 +- test/sql-tap/e_select1.test.lua | 30 +- test/sql-tap/engine.cfg | 3 + test/sql-tap/func.test.lua | 213 +-- test/sql-tap/func2.test.lua | 18 +- test/sql-tap/func5.test.lua | 6 +- .../gh-6299-lost-collation-on-trim.test.lua | 47 + test/sql-tap/minmax2.test.lua | 5 +- test/sql-tap/minmax4.test.lua | 2 +- test/sql-tap/null.test.lua | 2 +- test/sql-tap/orderby1.test.lua | 2 +- test/sql-tap/position.test.lua | 84 +- test/sql-tap/select1.test.lua | 4 +- test/sql-tap/select3.test.lua | 16 +- test/sql-tap/select5.test.lua | 2 +- test/sql-tap/select6.test.lua | 21 +- test/sql-tap/selectG.test.lua | 2 +- test/sql-tap/sql-errors.test.lua | 2 +- test/sql-tap/subquery.test.lua | 8 +- test/sql-tap/substr.test.lua | 6 +- test/sql-tap/tkt2942.test.lua | 10 +- test/sql-tap/trigger5.test.lua | 3 +- test/sql-tap/uuid.test.lua | 86 +- test/sql-tap/view.test.lua | 2 +- test/sql-tap/where3.test.lua | 6 +- test/sql-tap/with1.test.lua | 2 +- test/sql/boolean.result | 45 +- test/sql/collation.result | 2 +- test/sql/iproto.result | 4 +- test/sql/max-on-index.result | 6 +- test/sql/prepared.result | 12 +- test/sql/prepared.test.lua | 2 +- test/sql/types.result | 136 +- 46 files changed, 1550 insertions(+), 1387 deletions(-) create mode 100755 test/sql-tap/built-in-functions.test.lua create mode 100755 test/sql-tap/gh-6299-lost-collation-on-trim.test.lua -- 2.25.1
next reply other threads:[~2021-08-13 3:17 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-13 3:17 Mergen Imeev via Tarantool-patches [this message] 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 01/10] sql: modify signature of TRIM() Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 02/10] sql: rework SQL built-in functions hash table Mergen Imeev via Tarantool-patches 2021-08-16 13:53 ` Vladimir Davydov via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 03/10] sql: check number of arguments during parsing Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 04/10] sql: static type check for SQL built-in functions Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 05/10] sql: runtime " Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 06/10] sql: enable types checking for some functions Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 07/10] sql: fix result type of min() and max() functions Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 08/10] sql: check argument types of sum(), avg(), total() Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 09/10] sql: fix quote() function Mergen Imeev via Tarantool-patches 2021-08-13 3:17 ` [Tarantool-patches] [PATCH v1 10/10] sql: arguments check for string value functions Mergen Imeev via Tarantool-patches 2021-08-19 11:49 ` [Tarantool-patches] [PATCH v1 00/10] Check types of SQL built-in functions arguments Vladimir Davydov 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.1628824421.git.imeevma@gmail.com \ --to=tarantool-patches@dev.tarantool.org \ --cc=imeevma@tarantool.org \ --cc=vdavydov@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v1 00/10] Check types of SQL built-in functions arguments' \ /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