Skip to content

Commit

Permalink
Support Manticore db in syntax
Browse files Browse the repository at this point in the history
It was support of Manticore.table, but `Manticore`.table fired an error.
Now both variants work.

That closes #3566 (gitlab)
  • Loading branch information
alexey committed Oct 2, 2023
1 parent 7e56232 commit fd26671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sphinxql.l
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ FLOAT_CONSTANT {INT}\.{INT}?{EXP}?|{INT}?\.{INT}{EXP}|{INT}{EXP}
"WHERE" { YYSTOREBOUNDS; return TOK_WHERE; }
"WITHIN" { YYSTOREBOUNDS; return TOK_WITHIN; }

"MANTICORE."
"MANTICORE." |
"`MANTICORE`." { YYSTOREBOUNDS; return TOK_MANTICORE; }

"!=" { YYSTOREBOUNDS; return TOK_NE; }
Expand Down
2 changes: 1 addition & 1 deletion src/sphinxql.y
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ idxname:

identidx:
idxname
| TOK_MANTICORE idxname
| TOK_MANTICORE idxname {$$ = $2;}
;

one_index:
Expand Down

0 comments on commit fd26671

Please sign in to comment.