Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v3 0/4] Support ALTER TABLE ADD COLUMN
@ 2020-08-11  0:33 Roman Khabibov
  2020-08-11  0:33 ` [Tarantool-patches] [PATCH v3 1/4] sql: rename TK_COLUMN to TK_COLUMN_NAME Roman Khabibov
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Roman Khabibov @ 2020-08-11  0:33 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy

I split the last patch into three patches for convenience.

@ChangeLog
- Added <ALTER TABLE ADD COLUMN> statement support. Column description is the same as in <CREATE TABLE> statement (gh-2349, gh-3075).

Branch: https://github.com/tarantool/tarantool/tree/romanhabibov/gh-3075-add-column-v2
Issue: https://github.com/tarantool/tarantool/issues/3075
https://github.com/tarantool/tarantool/issues/2349

Roman Khabibov (4):
  sql: rename TK_COLUMN to TK_COLUMN_NAME
  sql: refactor create_table_def and parse
  schema: add box_space_field_MAX
  sql: support column addition

 extra/addopcodes.sh            |   2 +-
 extra/mkkeywordhash.c          |   7 +-
 src/box/errcode.h              |   2 +
 src/box/schema_def.h           |   1 +
 src/box/sql/build.c            | 602 ++++++++++++++++++++++-----------
 src/box/sql/expr.c             |  45 +--
 src/box/sql/fk_constraint.c    |   2 +-
 src/box/sql/parse.y            |  44 ++-
 src/box/sql/parse_def.h        |  53 ++-
 src/box/sql/prepare.c          |   7 +-
 src/box/sql/resolve.c          |  10 +-
 src/box/sql/select.c           |  10 +-
 src/box/sql/sqlInt.h           |  61 +++-
 src/box/sql/treeview.c         |   2 +-
 src/box/sql/where.c            |  18 +-
 src/box/sql/whereexpr.c        |  12 +-
 test/box/error.result          |   2 +
 test/sql/add-column.result     | 471 ++++++++++++++++++++++++++
 test/sql/add-column.test.sql   | 167 +++++++++
 test/sql/checks.result         |  20 ++
 test/sql/checks.test.lua       |   9 +
 test/sql/foreign-keys.result   |  28 ++
 test/sql/foreign-keys.test.lua |  11 +
 23 files changed, 1275 insertions(+), 311 deletions(-)
 create mode 100644 test/sql/add-column.result
 create mode 100644 test/sql/add-column.test.sql

-- 
2.21.0 (Apple Git-122)

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

end of thread, other threads:[~2020-09-11 21:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11  0:33 [Tarantool-patches] [PATCH v3 0/4] Support ALTER TABLE ADD COLUMN Roman Khabibov
2020-08-11  0:33 ` [Tarantool-patches] [PATCH v3 1/4] sql: rename TK_COLUMN to TK_COLUMN_NAME Roman Khabibov
2020-08-19 22:20   ` Vladislav Shpilevoy
2020-09-11 21:51     ` Roman Khabibov
2020-08-11  0:33 ` [Tarantool-patches] [PATCH v3 2/4] sql: refactor create_table_def and parse Roman Khabibov
2020-08-11  0:33 ` [Tarantool-patches] [PATCH v3 3/4] schema: add box_space_field_MAX Roman Khabibov
2020-08-11  0:33 ` [Tarantool-patches] [PATCH v3 4/4] sql: support column addition Roman Khabibov
2020-08-19 22:20   ` Vladislav Shpilevoy
2020-09-11 21:51     ` Roman Khabibov

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