** Changed in: tarantool
Status: New => 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/1018758
Title:
Problems with NUM64 type.
Status in Tarantool - an efficient in-memory data store:
Fix Released
Bug description:
Environment:
Linux 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 17:25:58 EST 2012 x86_64 x86_64
x86_64 GNU/Linux
Tarantool/Box 1.4.6-143-g6a982f7
Target: Linux-x86_64-RelWithDebugInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_STATIC=true
-DENABLE_GCOV=OFF -DENABLE_TRACE=ON -DENABLE_BACKTRACE=ON -DENABLE_CLIENT=true
Compiler: /home/buildslave/gcc46/bin/gcc
CFLAGS: -I/home/buildslave/build/tarantool/third_party/luajit/src
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCORO_ASM -fno-omit-frame-pointer
-fno-stack-protector -fexceptions -funwind-tables -static -std=gnu99 -Wall
-Wextra -Wno-sign-compare -Wno-strict-aliasing -DNDEBUG -DNVALGRIND
Space configuration:
space[0].enabled = 1
space[0].cardinality = 0
space[0].index[0].type = HASH
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = NUM64
Test cases:
localhost> insert into t0 values(1)
Insert ERROR, Supplied key field type does not match index type: expected u64
(ER_KEY_FIELD_TYPE)
localhost> insert into t0 values(72057594037927935)
Insert ERROR, Supplied key field type does not match index type: expected u64
(ER_KEY_FIELD_TYPE)
localhost>
Problems:
1. sql parser parses any numbers correctly, but tupple field is created as
NUM type with hardcoded 4 byte size Big 64-bit numbers is truncated to low 4
byte.
2. tarantool_box doesn't receive NUM type field for NUM64 primary key field
3. tarantool_box can't recover NUM fields from xlog into NUM64 primary key
field
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1018758/+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