Public bug reported:

Привет,

у нас есть space с int64 в качестве ключа. Вот конфигурация спейса:
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 = "NUM64"
space[0].index[1].type = "HASH"
space[0].index[1].unique = 1
space[0].index[1].key_field[0].fieldno = 1
space[0].index[1].key_field[0].type = "NUM"
space[0].index[2].type = "HASH"
space[0].index[2].unique = 1
space[0].index[2].key_field[0].fieldno = 2
space[0].index[2].key_field[0].type = "STR"

При попытке сделать select по этому ключу, высыпается exception:
<?php
$t = new Tarantool('127.0.0.1', 13013)
var_dump($t->select(0, 0, 1));

PHP Fatal error:  Uncaught exception 'Exception' with message 'select
failed: 514(0x00000202): Illegal parameters, key is not u64' in
<filename>

Хотя сборка php 64bit, и все инты в ней по умолчанию int64.


Tarantool - 1.4.9
Extension - 1.0

** Affects: tarantool
     Importance: Medium
     Assignee: Roman Tsisyk (rtsisyk)
         Status: New

-- 
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1216985

Title:
  Проблемы с PHP extension и int64

Status in Tarantool - an efficient in-memory data store:
  New

Bug description:
  Привет,

  у нас есть space с int64 в качестве ключа. Вот конфигурация спейса:
  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 = "NUM64"
  space[0].index[1].type = "HASH"
  space[0].index[1].unique = 1
  space[0].index[1].key_field[0].fieldno = 1
  space[0].index[1].key_field[0].type = "NUM"
  space[0].index[2].type = "HASH"
  space[0].index[2].unique = 1
  space[0].index[2].key_field[0].fieldno = 2
  space[0].index[2].key_field[0].type = "STR"

  При попытке сделать select по этому ключу, высыпается exception:
  <?php
  $t = new Tarantool('127.0.0.1', 13013)
  var_dump($t->select(0, 0, 1));

  PHP Fatal error:  Uncaught exception 'Exception' with message 'select
  failed: 514(0x00000202): Illegal parameters, key is not u64' in
  <filename>

  Хотя сборка php 64bit, и все инты в ней по умолчанию int64.

  
  Tarantool - 1.4.9
  Extension - 1.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1216985/+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

Reply via email to