mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve test case for sql variant ref expr ;
improve test cast for parameterized
This commit is contained in:
@@ -30,7 +30,7 @@ public class SQLVariantRefExpr extends SQLExprImpl {
|
||||
|
||||
private boolean global = false;
|
||||
|
||||
private boolean hasSessionBefore = false;
|
||||
private boolean session = false;
|
||||
|
||||
private int index = -1;
|
||||
|
||||
@@ -43,10 +43,10 @@ public class SQLVariantRefExpr extends SQLExprImpl {
|
||||
this.global = global;
|
||||
}
|
||||
|
||||
public SQLVariantRefExpr(String name, boolean global,boolean hasSessionBefore){
|
||||
public SQLVariantRefExpr(String name, boolean global,boolean session){
|
||||
this.name = name;
|
||||
this.global = global;
|
||||
this.hasSessionBefore = hasSessionBefore;
|
||||
this.session = session;
|
||||
}
|
||||
|
||||
public SQLVariantRefExpr(){
|
||||
@@ -74,12 +74,12 @@ public class SQLVariantRefExpr extends SQLExprImpl {
|
||||
}
|
||||
|
||||
|
||||
public boolean isHasSessionBefore() {
|
||||
return hasSessionBefore;
|
||||
public boolean isSession() {
|
||||
return session;
|
||||
}
|
||||
|
||||
public void setHasSessionBefore(boolean hasSessionBefore) {
|
||||
this.hasSessionBefore = hasSessionBefore;
|
||||
public void setSession(boolean session) {
|
||||
this.session = session;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user