Number in string bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tarantool |
Confirmed
|
High
|
Roman Tsisyk |
Bug Description
lua box.select(6,0,1)
---
- 1: {6, 7, 842216504, '2', '1', '1', 12849, 12849, '2', '14762'}
in this tuple all fields except 0 and 1 are strings, and were provided via php strongly converted to a string.
When I try to set 3rd field of the tuple to value "8432", I got next result:
...
lua box.update(6, 1, "=p", 3, "8432")
---
- 1: {6, 7, 842216504, '2', '1', '1', 12849, 12849, '2', '14762'}
and the same request via php:
array(2) {
["count"]=>
int(1)
["tuples_list"]=>
array(1) {
[0]=>
array(11) {
[0]=>
int(1)
[1]=>
int(6)
[2]=>
int(7)
[3]=>
int(
[4]=>
string(1) "2"
[5]=>
string(1) "1"
[6]=>
string(1) "1"
[7]=>
string(2) "12"
[8]=>
string(2) "12"
[9]=>
string(1) "2"
[10]=>
string(5) "14762"
}
}
}
tags: | added: php tarantool |
Sorry, here is config for namespace: .index[ 0].type = "HASH" .index[ 0].unique = 1 .index[ 0].key_ field[0] .fieldno = 0 .index[ 0].key_ field[0] .type = "NUM"
# fifo's
space[6].enabled = 1
space[6]
space[6]
space[6]
space[6]