sql: check returned value type for UDF
All user-defined functions feature type of returned value (if it is not specified during function creation, it is assumed to be ANY), but currently it is ignored. This patch introduces check which verifies that returned value is of specified in function's definition type. There's no attempt at implicit conversion to specified (target) type - returned value must be literally of the specified type. Closes #4387
Showing
- src/box/errcode.h 1 addition, 0 deletionssrc/box/errcode.h
- src/box/field_def.h 15 additions, 2 deletionssrc/box/field_def.h
- src/box/sql/vdbe.c 11 additions, 0 deletionssrc/box/sql/vdbe.c
- test/box/misc.result 1 addition, 0 deletionstest/box/misc.result
- test/sql-tap/func.test.lua 122 additions, 1 deletiontest/sql-tap/func.test.lua
- test/sql/func-recreate.result 4 additions, 4 deletionstest/sql/func-recreate.result
- test/sql/func-recreate.test.lua 3 additions, 3 deletionstest/sql/func-recreate.test.lua
Loading
Please register or sign in to comment