[tarantool-patches] Re: [PATCH v1 1/1] sql: introduce TRUNCATE TABLE operation

  • From: Vladislav Shpilevoy <v.shpilevoy@xxxxxxxxxxxxx>
  • To: tarantool-patches@xxxxxxxxxxxxx, Kirill Shcherbatov <kshcherbatov@xxxxxxxxxxxxx>
  • Date: Wed, 18 Jul 2018 11:31:33 +0300

Hello. I do not see, where do you call box_truncate, and where is a
test that it is called.

On 18/07/2018 11:22, Kirill Shcherbatov wrote:

As sql_table_delete_from already support OP_Clear fast cleanup
for non-complex requests we only need to introduce new words
to parser that call DELETE with NULL conditions.

Closes #2201.
---
Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-2201-truncate-table
Issue: https://github.com/tarantool/tarantool/issues/2201

  extra/mkkeywordhash.c    |  1 +
  src/box/sql/parse.y      |  9 +++++++++
  test/sql/delete.result   | 10 ++++++++++
  test/sql/delete.test.lua |  6 ++++++
  4 files changed, 26 insertions(+)


Other related posts: