** Changed in: tarantool
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1072624
Title:
Tree Index doesn't check key sizes
Status in Tarantool - an efficient in-memory data store:
Fix Released
Bug description:
Single-part:
space[0].enabled = 1
space[0].index[0].type = "TREE"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "NUM"
localhost> INSERT INTO t0 VALUES('fdsafdsa') <!-- Incorrect behaviour
Insert OK, 1 rows affected
localhost> INSERT INTO t0 VALUES('fdsafdsadsfdsaf') <!-- Incorrect behaviour
Insert OK, 1 rows affected
Multi-part:
space[0].enabled = 1
space[0].index[0].type = "TREE"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "NUM"
space[0].index[0].key_field[1].fieldno = 1
space[0].index[0].key_field[1].type = "NUM"
localhost> INSERT into t0 VALUES('aaaaaa')
Insert ERROR, Field 2 was not found in the tuple (ER_NO_SUCH_FIELD) <!--
Correct behaviour
localhost> INSERT into t0 VALUES('aaaaaa', 'xxxxxxxx') <!-- Incorrect
behaviour
Insert OK, 1 rows affected
localhost> INSERT into t0 VALUES('aaaaaa', 11111) <!-- Incorrect behaviour
Insert OK, 1 rows affected
localhost> INSERT into t0 VALUES(11111, 'yyyyyyy') <!-- Incorrect behaviour
Insert OK, 1 rows affected
localhost>
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1072624/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp