Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when tring to set string attribute to any value #195

Closed
drewblin opened this issue May 20, 2019 · 2 comments
Closed

Error when tring to set string attribute to any value #195

drewblin opened this issue May 20, 2019 · 2 comments
Assignees

Comments

@drewblin
Copy link

drewblin commented May 20, 2019

Describe the environment

Manticore Search version: 2.8.1

**OS version:**FreeBSD 11.2-RELEASE-p4

Describe the problem

Description of the issue:
Got error when tring to set string attribute to any value

Steps to reproduce:

  1. Create RT index with
    rt_attr_string = street_full_name

  2. Call
    update address_v2 set street_full_name = '' where id = 2;
    or
    update address_v2 set street_full_name = 'qwer' where id = 2;

  3. Get error:
    ERROR 1064 (42000): sphinxql: syntax error, unexpected QUOTED_STRING near ''' where id = 2'

@drewblin drewblin changed the title Error when tring to set string attribute to empty string Error when tring to set string attribute to any value May 20, 2019
@tomatolog
Copy link
Contributor

prior to Manticore3 you can not update STRING attributes as said in docs

All attributes types (int, bigint, float, MVA, JSON(see below)), except for strings attributes, can be dynamically updated.

That is why you got error for your queries.
To make it work you have to switch to Manticore3 there issue was fixed or switch to another attribute type in case you have to stick with Manticore 2.8.1

@tomatolog tomatolog self-assigned this May 21, 2019
@drewblin
Copy link
Author

Oh, sorry. I read documentation, but haven't pay attention that it was for Manticore3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants