Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 0/2] Fix wrong field count in bytecode for ANALYZE
@ 2019-03-18 23:51 Nikita Pettik
  2019-03-18 23:51 ` [tarantool-patches] [PATCH 1/2] sql: fix OP_MakeRecord argument of ANALYZE bytecode Nikita Pettik
  2019-03-18 23:51 ` [tarantool-patches] [PATCH 2/2] schema: add exact field count to SQL stat spaces Nikita Pettik
  0 siblings, 2 replies; 6+ messages in thread
From: Nikita Pettik @ 2019-03-18 23:51 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy, Nikita Pettik

Branch: https://github.com/tarantool/tarantool/tree/np/fix-analyze-makerecord

First patch fixes obvious bug in VDBE bytecode for ANALYZE SQL
statement. To prevent similar bugs in the future, second patch
explicitly sets field count for _sql_stat1 and _sql_stat4 system
spaces.

Nikita Pettik (2):
  sql: fix OP_MakeRecord argument of ANALYZE bytecode
  schema: add exact field count to SQL stat spaces

 src/box/bootstrap.snap                             | Bin 1831 -> 1840 bytes
 src/box/lua/upgrade.lua                            |  29 ++++++++++++++-
 src/box/sql/analyze.c                              |   2 +-
 test/box-py/bootstrap.result                       |   6 ++--
 test/box/access_misc.result                        |   4 +--
 ...{sql-statN-index-drop.result => analyze.result} |  17 +++++++++
 ...-statN-index-drop.test.lua => analyze.test.lua} |   6 ++++
 test/sql/upgrade.result                            |  39 +++++++++++++++++++--
 test/sql/upgrade.test.lua                          |  13 +++++++
 9 files changed, 107 insertions(+), 9 deletions(-)
 rename test/sql/{sql-statN-index-drop.result => analyze.result} (86%)
 rename test/sql/{sql-statN-index-drop.test.lua => analyze.test.lua} (91%)

-- 
2.15.1

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

end of thread, other threads:[~2019-03-21 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 23:51 [tarantool-patches] [PATCH 0/2] Fix wrong field count in bytecode for ANALYZE Nikita Pettik
2019-03-18 23:51 ` [tarantool-patches] [PATCH 1/2] sql: fix OP_MakeRecord argument of ANALYZE bytecode Nikita Pettik
2019-03-18 23:51 ` [tarantool-patches] [PATCH 2/2] schema: add exact field count to SQL stat spaces Nikita Pettik
2019-03-21 13:31   ` [tarantool-patches] " Vladislav Shpilevoy
2019-03-21 15:22     ` n.pettik
2019-03-21 15:39       ` Vladislav Shpilevoy

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