mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser export parameter sharding support.
This commit is contained in:
@@ -158,10 +158,9 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
|
||||
|
||||
{
|
||||
this.dbType = JdbcConstants.MYSQL;
|
||||
this.shardingSupport = true;
|
||||
}
|
||||
|
||||
private boolean shardingSupport = true;
|
||||
|
||||
public MySqlOutputVisitor(Appendable appender){
|
||||
super(appender);
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
protected boolean parameterized = false;
|
||||
protected boolean parameterizedMergeInList = false;
|
||||
|
||||
protected boolean shardingSupport = false;
|
||||
|
||||
public SQLASTOutputVisitor(Appendable appender){
|
||||
this.appender = appender;
|
||||
}
|
||||
@@ -88,7 +90,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
}
|
||||
|
||||
public void addTableMapping(String srcTable, String destTable) {
|
||||
if (tableMapping != null) {
|
||||
if (tableMapping == null) {
|
||||
tableMapping = new HashMap<String, String>();
|
||||
}
|
||||
tableMapping.put(srcTable, destTable);
|
||||
|
||||
Reference in New Issue
Block a user