-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 2106: Add parsing functionality for MySQL
ADD PARTITION
a…
…nd `DROP PARTITION` clauses in `ALTER TABLE` statements (#2107) * feat MySQL Alter add partition * fix PartitionDefinition to Serializable --------- Co-authored-by: mj-db <[email protected]>
- Loading branch information
Showing
5 changed files
with
199 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/net/sf/jsqlparser/statement/create/table/PartitionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package net.sf.jsqlparser.statement.create.table; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class PartitionDefinition implements Serializable { | ||
private String partitionName; | ||
private String partitionOperation; | ||
private List<String> values; | ||
|
||
public PartitionDefinition(String partitionName, String partitionOperation, | ||
List<String> values) { | ||
this.partitionName = partitionName; | ||
this.partitionOperation = partitionOperation; | ||
this.values = values; | ||
} | ||
|
||
public String getPartitionName() { | ||
return partitionName; | ||
} | ||
|
||
public void setPartitionName(String partitionName) { | ||
this.partitionName = partitionName; | ||
} | ||
|
||
public String getPartitionOperation() { | ||
return partitionOperation; | ||
} | ||
|
||
public void setPartitionOperation(String partitionOperation) { | ||
this.partitionOperation = partitionOperation; | ||
} | ||
|
||
public List<String> getValues() { | ||
return values; | ||
} | ||
|
||
public void setValues(List<String> values) { | ||
this.values = values; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.