improve MySqlParameterizedOutputVisitor

This commit is contained in:
Yako
2014-10-22 19:41:05 +08:00
parent 38039e2480
commit 9da2cbc8d3
3 changed files with 12 additions and 10 deletions
@@ -1747,11 +1747,6 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
@Override
public boolean visit(MySqlSetTransactionIsolationLevelStatement x) {
return false;
}
@Override
public void endVisit(MySqlSetTransactionIsolationLevelStatement x) {
if (x.getGlobal() == null) {
print("SET TRANSACTION ISOLATION LEVEL ");
} else if (x.getGlobal().booleanValue()) {
@@ -1760,6 +1755,12 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
print("SET SESSION TRANSACTION ISOLATION LEVEL ");
}
print(x.getLevel());
return false;
}
@Override
public void endVisit(MySqlSetTransactionIsolationLevelStatement x) {
}
@Override