sql: introduce mem_copy()
This patch introduces mem_copy(). This function copies value from source MEM to destination MEM. In case value is string or binary and have not static allocation type, it is copied to newly allocated memory. Part of #5818
Showing
- src/box/sql/func.c 2 additions, 2 deletionssrc/box/sql/func.c
- src/box/sql/mem.c 26 additions, 22 deletionssrc/box/sql/mem.c
- src/box/sql/mem.h 8 additions, 1 deletionsrc/box/sql/mem.h
- src/box/sql/vdbe.c 1 addition, 5 deletionssrc/box/sql/vdbe.c
- src/box/sql/vdbeapi.c 1 addition, 1 deletionsrc/box/sql/vdbeapi.c
- src/box/sql/vdbeaux.c 1 addition, 1 deletionsrc/box/sql/vdbeaux.c
- src/box/sql/vdbemem.c 1 addition, 2 deletionssrc/box/sql/vdbemem.c
Loading
Please register or sign in to comment