Browse Source

Support `Manticore` db in syntax

It was support of Manticore.table, but `Manticore`.table fired an error.
Now both variants work.

That closes #3566 (gitlab)
alexey 2 years ago
parent
commit
fd26671be6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/sphinxql.l
  2. 1 1
      src/sphinxql.y

+ 1 - 1
src/sphinxql.l

@@ -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; }

+ 1 - 1
src/sphinxql.y

@@ -307,7 +307,7 @@ idxname:
 
 identidx:
 	 idxname
-	 | TOK_MANTICORE idxname
+	 | TOK_MANTICORE idxname {$$ = $2;}
 	;
 
 one_index: