sql: make LIKE accept only TEXT arguments
According to ANSI[1] specification, LIKE arguments must be of string-like type (VARCHAR, CHAR, TEXT etc). If one of arguments is NULL, then the result of LIKE function is NULL as well. This patch makes LIKE follow these rules. ANSI 2013 Part 2: Foundation; Chapter 8.5 <like predicate> Closes #3954
Showing
- src/box/sql/func.c 15 additions, 3 deletionssrc/box/sql/func.c
- src/box/sql/vdbe.c 1 addition, 5 deletionssrc/box/sql/vdbe.c
- src/box/sql/vdbeInt.h 6 additions, 0 deletionssrc/box/sql/vdbeInt.h
- test/sql-tap/tkt1537.test.lua 2 additions, 2 deletionstest/sql-tap/tkt1537.test.lua
- test/sql/types.result 45 additions, 0 deletionstest/sql/types.result
- test/sql/types.test.lua 15 additions, 0 deletionstest/sql/types.test.lua
Loading
Please register or sign in to comment