Closed Terminator637 closed 5 years ago
You can try to paste that numbers, or bigger, to Chrome or FireFox console and see the result ;)
@Terminator637 Looks like, javascript or php or msgpack extension can't use unsigned 64 bit numbers. In addition, I can't persist this values in tarantool via tarantoolctl.
How did you add 2298275697516843974 to the database? I need this to reproduce and determine what can be fixed :)
localhost:3301> box.info.version
---
- 1.10.2-203-g0b7078a
localhost:3301> box.schema.create_space('tester', { format = {{'id', 'unsigned'}}})
---
- engine: memtx
before_replace: 'function: 0x4086d8b8'
on_replace: 'function: 0x4086d890'
field_count: 0
temporary: false
index: []
is_local: false
enabled: false
name: tester
id: 65046
- created
...
localhost:3301> box.space.tester:create_index('pk', {parts = {1, 'unsigned'}})
---
- unique: true
parts:
- type: unsigned
is_nullable: false
fieldno: 1
id: 0
space_id: 65046
name: pk
type: TREE
localhost:3301> box.space.tester:insert({2298275697516843974})
---
- [2298275697516844032]
...
localhost:3301> box.space.tester:select()
---
- - [2298275697516844032]
...
I reproduce the issue and discover, that this is browser-based issue, need to investigate how we can deal with it.
Google chrome console:
JSON.parse('2298275697516843974') == 2298275697516844000; // true
fixed in 0.3.14, use latest docker build.
How did you add 2298275697516843974 to the database?
localhost:3301> box.space.main:insert{2298275697516843974ULL,5,1553784592}
---
- [2298275697516843974, 5, 1553784592]
...
localhost:3301> box.space.main:select()
---
- - [2298275697516843974, 5, 1553784592]
...
I got the next(correct) output in the tarantool console:
But in the admin i got wrong output in the first column:![xxE0wJ0](https://user-images.githubusercontent.com/21968823/55169823-7f04cf80-5186-11e9-845f-3d105e6da9df.png)
All values are unsigned.
I think this is a bug.