sql: Enforce scalar type for all indices
Due to the way LIKE operator is implemented, TEXT indices are looked up with BLOB keys. LIKE applies both to TEXT and BLOBs, hence a code is generated to lookup a TEXT and then a BLOB even if column affinity is TEXT. sql: btreeMoveto() should use MsgPack unpacker. * sqlite/src/btree (btreeMoveto): All data is stored in MsgPack format. This is yet another place where SQLite native format decoder is invoked for MsgPack data. Call MsgPack decoder instead. sql: Fix some warnings and remove dead code sql: Fix IdxKeyCompare once more * Incorrect format structure attributed was consulted for the field count. * Outdated formats were handled incorrectly - TUPLE_OFFSET_SLOT_NIL doesn't necessary designate a field immediately following the previously processed one.
Showing
- src/box/sql.c 20 additions, 14 deletionssrc/box/sql.c
- src/box/sql/btree.c 1 addition, 1 deletionsrc/box/sql/btree.c
- src/box/sql/build.c 1 addition, 0 deletionssrc/box/sql/build.c
- src/box/sql/vdbe.c 2 additions, 5 deletionssrc/box/sql/vdbe.c
- src/box/sql/vdbe.h 1 addition, 1 deletionsrc/box/sql/vdbe.h
- src/box/sql/vdbeInt.h 0 additions, 6 deletionssrc/box/sql/vdbeInt.h
- src/box/sql/vdbeaux.c 5 additions, 274 deletionssrc/box/sql/vdbeaux.c
- src/box/sql/vdbesort.c 1 addition, 136 deletionssrc/box/sql/vdbesort.c
Loading
Please register or sign in to comment