@@ -2124,7 +2124,6 @@ AlterTableSpecSingleOpt:
2124
2124
startOffset := parser.yyVAL.offset
2125
2125
endOffset := parser.yylval.offset
2126
2126
partitionMethod.SetText(parser.lexer.client, parser.src[startOffset:endOffset])
2127
- partitionMethod.SetOriginTextPosition(startOffset)
2128
2127
$$ = &ast.AlterTableSpec{
2129
2128
Tp: ast.AlterTableReorganizeLastPartition,
2130
2129
Partition: &ast.PartitionOptions{PartitionMethod: partitionMethod},
@@ -2136,8 +2135,6 @@ AlterTableSpecSingleOpt:
2136
2135
startOffset := parser.yyVAL.offset
2137
2136
endOffset := parser.yylval.offset
2138
2137
partitionMethod.SetText(parser.lexer.client, parser.src[startOffset:endOffset])
2139
- // Needed for replacing syntactic sugar with generated partitioning definition string
2140
- partitionMethod.SetOriginTextPosition(startOffset)
2141
2138
$$ = &ast.AlterTableSpec{
2142
2139
Tp: ast.AlterTableReorganizeFirstPartition,
2143
2140
Partition: &ast.PartitionOptions{PartitionMethod: partitionMethod},
@@ -2318,8 +2315,6 @@ AlterTableSpec:
2318
2315
startOffset := parser.yyVAL.offset
2319
2316
endOffset := parser.yylval.offset
2320
2317
partitionMethod.SetText(parser.lexer.client, parser.src[startOffset:endOffset])
2321
- // Needed for replacing syntactic sugar with generated partitioning definition string
2322
- partitionMethod.SetOriginTextPosition(startOffset)
2323
2318
$$ = &ast.AlterTableSpec{
2324
2319
NoWriteToBinlog: noWriteToBinlog,
2325
2320
Tp: ast.AlterTableAddLastPartition,
@@ -2406,8 +2401,6 @@ AlterTableSpec:
2406
2401
startOffset := parser.yyVAL.offset
2407
2402
endOffset := parser.yylval.offset
2408
2403
partitionMethod.SetText(parser.lexer.client, parser.src[startOffset:endOffset])
2409
- // Needed for replacing syntactic sugar with generated partitioning definition string
2410
- partitionMethod.SetOriginTextPosition(startOffset)
2411
2404
$$ = &ast.AlterTableSpec{
2412
2405
IfExists: $8 .(bool ),
2413
2406
Tp: ast.AlterTableDropFirstPartition,
@@ -4713,8 +4706,6 @@ PartitionIntervalOpt:
4713
4706
startOffset := parser.yyVAL.offset
4714
4707
endOffset := parser.yylval.offset
4715
4708
partitionInterval.SetText(parser.lexer.client, parser.src[startOffset:endOffset])
4716
- // Needed for replacing syntactic sugar with generated partitioning definition string
4717
- partitionInterval.SetOriginTextPosition(startOffset)
4718
4709
$$ = partitionInterval
4719
4710
}
4720
4711
0 commit comments