[parser] fix: remove warning in parser for rebuild/check/optimize/repair partition (#920)
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn>
This commit is contained in:
@ -10102,8 +10102,6 @@ yynewstate:
|
||||
ret.PartitionNames = yyS[yypt-0].item.([]model.CIStr)
|
||||
}
|
||||
parser.yyVAL.item = ret
|
||||
yylex.AppendError(yylex.Errorf("The OPTIMIZE PARTITION clause is parsed but ignored by all storage engines."))
|
||||
parser.lastErrorAsWarn()
|
||||
}
|
||||
case 26:
|
||||
{
|
||||
@ -10117,8 +10115,6 @@ yynewstate:
|
||||
ret.PartitionNames = yyS[yypt-0].item.([]model.CIStr)
|
||||
}
|
||||
parser.yyVAL.item = ret
|
||||
yylex.AppendError(yylex.Errorf("The REPAIR PARTITION clause is parsed but ignored by all storage engines."))
|
||||
parser.lastErrorAsWarn()
|
||||
}
|
||||
case 27:
|
||||
{
|
||||
@ -10178,8 +10174,6 @@ yynewstate:
|
||||
ret.PartitionNames = yyS[yypt-0].item.([]model.CIStr)
|
||||
}
|
||||
parser.yyVAL.item = ret
|
||||
yylex.AppendError(yylex.Errorf("REBUILD PARTITION syntax is parsed but not implement for now."))
|
||||
parser.lastErrorAsWarn()
|
||||
}
|
||||
case 32:
|
||||
{
|
||||
|
||||
@ -1561,8 +1561,6 @@ AlterTableSpec:
|
||||
ret.PartitionNames = $4.([]model.CIStr)
|
||||
}
|
||||
$$ = ret
|
||||
yylex.AppendError(yylex.Errorf("The OPTIMIZE PARTITION clause is parsed but ignored by all storage engines."))
|
||||
parser.lastErrorAsWarn()
|
||||
}
|
||||
| "REPAIR" "PARTITION" NoWriteToBinLogAliasOpt AllOrPartitionNameList
|
||||
{
|
||||
@ -1576,8 +1574,6 @@ AlterTableSpec:
|
||||
ret.PartitionNames = $4.([]model.CIStr)
|
||||
}
|
||||
$$ = ret
|
||||
yylex.AppendError(yylex.Errorf("The REPAIR PARTITION clause is parsed but ignored by all storage engines."))
|
||||
parser.lastErrorAsWarn()
|
||||
}
|
||||
| "IMPORT" "PARTITION" AllOrPartitionNameList "TABLESPACE"
|
||||
{
|
||||
@ -1637,8 +1633,6 @@ AlterTableSpec:
|
||||
ret.PartitionNames = $4.([]model.CIStr)
|
||||
}
|
||||
$$ = ret
|
||||
yylex.AppendError(yylex.Errorf("REBUILD PARTITION syntax is parsed but not implement for now."))
|
||||
parser.lastErrorAsWarn()
|
||||
}
|
||||
| "REORGANIZE" "PARTITION" NoWriteToBinLogAliasOpt ReorganizePartitionRuleOpt
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user