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

MVA attributes #39

Closed
dlasvazi opened this issue Aug 3, 2015 · 1 comment
Closed

MVA attributes #39

dlasvazi opened this issue Aug 3, 2015 · 1 comment

Comments

@dlasvazi
Copy link

dlasvazi commented Aug 3, 2015

Hi!
A short time ago we have update yii2 framework to last release, sphinx now is says error for mva attribute.
Query:
$countVideos = Video::find()
->where(['kladrs' => [0, 110828]])
->count();
Error:
SQLSTATE[42000]: Syntax error or access violation: 1064 sphinxql: syntax error, unexpected QUOTED_STRING, expecting CONST_INT or '-' near ''0', '110828')'
The SQL being executed was: SELECT COUNT(*) FROM video WHERE kladrs IN ('0', '110828')

Why he quotes int like strings? How to repair this:(( Any ideas?

@dlasvazi
Copy link
Author

dlasvazi commented Aug 3, 2015

I decided. Qouted because PHP_INT_SIZE = 4 on my server. Thank all.

@dlasvazi dlasvazi closed this as completed Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant