sql: fix segfault in pragma table_info
We should first check that primary key is not NULL. Closes #4745 (cherry picked from commit e9aa3784)
Showing
- src/box/sql/pragma.c 3 additions, 3 deletionssrc/box/sql/pragma.c
- test/sql/gh-4745-table-info-assertion.result 23 additions, 0 deletionstest/sql/gh-4745-table-info-assertion.result
- test/sql/gh-4745-table-info-assertion.test.lua 12 additions, 0 deletionstest/sql/gh-4745-table-info-assertion.test.lua
Loading
Please register or sign in to comment