Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v2 0/3] sql: do not show IDs generated by trigger
@ 2019-07-04 11:42 imeevma
  2019-07-04 11:42 ` [tarantool-patches] [PATCH v2 1/3] sql: remove unnecessary AUTOINCREMENT ID generation imeevma
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: imeevma @ 2019-07-04 11:42 UTC (permalink / raw)
  To: korablev; +Cc: tarantool-patches

Currently, if an INSERT was executed by a trigger during the
execution of a statement, if there were any generated identifiers,
they can be displayed as a result of the statement. This is
incorrect, since we are not able to divide the IDs obtained into
those that belong to the table mentioned in the statement and
those that do not belong to this table.

https://github.com/tarantool/tarantool/issues/4188
https://github.com/tarantool/tarantool/tree/imeevma/gh-4188-remove-additonal-generated-ids

Changes in v2:
1) Patch was divided into 3 new patches.

Mergen Imeev (3):
  sql: remove unnecessary AUTOINCREMENT ID generation
  sql: do not show IDs generated by trigger
  sql: remove VDBE from TXN

 src/box/errcode.h                       |  1 +
 src/box/sequence.c                      | 22 +++++++++----
 src/box/sequence.h                      | 13 ++++++--
 src/box/sql/insert.c                    | 15 ++++++---
 src/box/sql/parse.y                     |  4 +--
 src/box/sql/sqlInt.h                    |  2 +-
 src/box/sql/trigger.c                   | 12 +++----
 src/box/sql/vdbe.c                      | 25 ++++++++-------
 src/box/sql/vdbe.h                      |  3 +-
 src/box/sql/vdbeInt.h                   |  2 +-
 src/box/sql/vdbeaux.c                   | 10 +++---
 src/box/txn.h                           | 17 ----------
 test/box/misc.result                    |  1 +
 test/sql/gh-2981-check-autoinc.result   | 32 ++++++++++++++++++
 test/sql/gh-2981-check-autoinc.test.lua | 11 ++++++-
 test/sql/iproto.result                  |  2 --
 test/sql/triggers.result                | 57 +++++++++++++++++++++++++++++++++
 test/sql/triggers.test.lua              | 14 ++++++++
 18 files changed, 177 insertions(+), 66 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2019-07-08 18:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 11:42 [tarantool-patches] [PATCH v2 0/3] sql: do not show IDs generated by trigger imeevma
2019-07-04 11:42 ` [tarantool-patches] [PATCH v2 1/3] sql: remove unnecessary AUTOINCREMENT ID generation imeevma
2019-07-08 18:54   ` [tarantool-patches] " n.pettik
2019-07-04 11:42 ` [tarantool-patches] [PATCH v2 2/3] sql: do not show IDs generated by trigger imeevma
2019-07-08 18:54   ` [tarantool-patches] " n.pettik
2019-07-04 11:42 ` [tarantool-patches] [PATCH v2 3/3] sql: remove VDBE from TXN imeevma

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