sql: use mem_mp_type() in sql_value_type()
sql_value_type() and mem_mp_type() do the same thing: return messagePack type corresponding to value stored in memory cell. However, sql_value_type() operates on opaque API wrapper - sql_value*. To avoid duplicating code let's invoke mem_mp_type() in sql_value_type(). At once, let's account that mp_type now can be not only _BIN, but also _ARRAY and _MAP - this fact will be used when we introduce arrays and maps in SQL.
Showing
- src/box/execute.c 3 additions, 1 deletionsrc/box/execute.c
- src/box/sql/func.c 22 additions, 8 deletionssrc/box/sql/func.c
- src/box/sql/vdbeInt.h 7 additions, 0 deletionssrc/box/sql/vdbeInt.h
- src/box/sql/vdbeapi.c 2 additions, 10 deletionssrc/box/sql/vdbeapi.c
- src/box/sql/vdbemem.c 2 additions, 1 deletionsrc/box/sql/vdbemem.c
Loading
Please register or sign in to comment