tarantool / nginx_upstream_module

Tarantool NginX upstream module (REST, JSON API, websockets, load balancing)
Other
174 stars 18 forks source link

Change fieldno in error message for update and upsert #113

Open ja1cap opened 6 years ago

ja1cap commented 6 years ago

fieldno in error message is invalid, try to update tuple that doesn't have 3 field

Nginx config

location /update {
  tnt_pure_result on;
  tnt_update 514 "key=%ks" "value=%n";
  tnt_pass tnt;
}

Request /update?key=test_inc&value=%23,3,1

Response

{"id":0,"error":{"message":"Field 2 was not found in the tuple","code":-32805}}