[Tarantool-patches] [PATCH 0/3] Booleans and lower vs upper

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Mon Oct 28 00:35:06 MSK 2019


The patchset contains 3 independent commits fixing some minor
things in SQL.

The commit messages below speak for themselves, everything is
trivial.

This patchset is mostly about problems mentioned in #4462, but
does not close it. Because I don't know to fix the last problem
yet, and don't know whether I will do it.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4462-sql-boolean-bugs
Issue: https://github.com/tarantool/tarantool/issues/4462

Vladislav Shpilevoy (3):
  sql: LENGTH function accepts boolean
  sql: CAST(<boolean> AS TEXT) returns lowercase
  sql: make type string case lower everywhere

 src/box/sql/delete.c             |   2 +-
 src/box/sql/func.c               |  12 +-
 src/box/sql/insert.c             |   2 +-
 src/box/sql/pragma.c             |   4 +-
 src/box/sql/pragma.h             |  92 +++---
 src/box/sql/prepare.c            |  24 +-
 src/box/sql/update.c             |   2 +-
 src/box/sql/vdbe.c               |  16 +-
 src/box/sql/vdbeapi.c            |  16 +-
 src/box/sql/vdbemem.c            |   2 +-
 test/sql-tap/func.test.lua       |   2 +-
 test/sql-tap/position.test.lua   |  16 +-
 test/sql-tap/sql-errors.test.lua |   4 +-
 test/sql/boolean.result          | 526 ++++++++++++++++---------------
 test/sql/boolean.test.sql        |   2 +
 test/sql/iproto.result           |  48 +--
 test/sql/row-count.result        |  10 +-
 test/sql/sql-debug.result        |   6 +-
 test/sql/types.result            |  42 +--
 19 files changed, 417 insertions(+), 411 deletions(-)

-- 
2.21.0 (Apple Git-122)



More information about the Tarantool-patches mailing list