sql: truncate values in type mismatch error
STRING, MAP, and ARRAY values that are too long can make the type mismatch error description less descriptive than necessary. This patch truncates values that are too long and adds "..." to indicate that the value has been truncated. Part of #6176
Showing
- src/box/sql/mem.c 12 additions, 6 deletionssrc/box/sql/mem.c
- src/box/sql/mem.h 2 additions, 1 deletionsrc/box/sql/mem.h
- test/sql-tap/gh-4766-wrong-cast-from-blob-to-int.test.lua 1 addition, 6 deletionstest/sql-tap/gh-4766-wrong-cast-from-blob-to-int.test.lua
- test/sql-tap/sql-errors.test.lua 46 additions, 1 deletiontest/sql-tap/sql-errors.test.lua
- test/sql/types.result 1 addition, 5 deletionstest/sql/types.result
Loading
Please register or sign in to comment