Skip to content

tnt_upsert and tnt_update should be like lua's functions #110

Closed
@ja1cap

Description

@ja1cap
  location /upsert {
    tnt_upsert 514 "key=%s,new_value=%n" "updated_value=%on";
    tnt_pass tnt;
  }

Request example

/upsert?key=test_inc&new_value=1&updated_value=%2B,2,5

Tuple inserted ['test_inc', 1], but the second request doesn't update field 2, if you change operation from "+"(%2B) to "=", then tuple would be updated ['test_inc', 1, 5], instead of changing field 2, field 3 is changed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions