sql: fix insertion crash
Previously SQL didn't validate for all cases, that the amount of the
source and destination columns during insertion is equal. The problem
was detected when we insert an incorrect amount of values into the
table. For example, the query
insert into t(a) select a, b from t
produced an instance crash. Fixed.
Closes #7132
NO_DOC=bug fix
Co-authored-by:
Mergen Imeev <imeevma@gmail.com>
Showing
- changelogs/unreleased/gh-7132-sql-insertion-crash.md 4 additions, 0 deletionschangelogs/unreleased/gh-7132-sql-insertion-crash.md
- src/box/sql/insert.c 72 additions, 71 deletionssrc/box/sql/insert.c
- test/sql-luatest/gh_7132_insertion_crash_test.lua 36 additions, 0 deletionstest/sql-luatest/gh_7132_insertion_crash_test.lua
Loading