mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
test
This commit is contained in:
+10
@@ -13,6 +13,7 @@ public class OracleStorageClause extends OracleSQLObjectImpl {
|
||||
private SQLExpr freeLists;
|
||||
private SQLExpr freeListGroups;
|
||||
private SQLExpr bufferPool;
|
||||
private SQLExpr objno;
|
||||
|
||||
@Override
|
||||
public void accept0(OracleASTVisitor visitor) {
|
||||
@@ -21,10 +22,19 @@ public class OracleStorageClause extends OracleSQLObjectImpl {
|
||||
acceptChild(visitor, freeLists);
|
||||
acceptChild(visitor, freeListGroups);
|
||||
acceptChild(visitor, bufferPool);
|
||||
acceptChild(visitor, objno);
|
||||
}
|
||||
visitor.endVisit(this);
|
||||
}
|
||||
|
||||
public SQLExpr getObjno() {
|
||||
return objno;
|
||||
}
|
||||
|
||||
public void setObjno(SQLExpr objno) {
|
||||
this.objno = objno;
|
||||
}
|
||||
|
||||
public SQLExpr getInitial() {
|
||||
return initial;
|
||||
}
|
||||
|
||||
@@ -85,6 +85,10 @@ public class OracleCreateTableParser extends SQLCreateTableParser {
|
||||
lexer.nextToken();
|
||||
storage.setBufferPool(this.exprParser.expr());
|
||||
continue;
|
||||
} else if (identifierEquals("OBJNO")) {
|
||||
lexer.nextToken();
|
||||
storage.setObjno(this.exprParser.expr());
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@@ -2493,17 +2493,22 @@ public class OracleOutputVisitor extends SQLASTOutputVisitor implements OracleAS
|
||||
|
||||
if (x.getFreeLists() != null) {
|
||||
print(" FREELISTS ");
|
||||
x.getInitial().accept(this);
|
||||
x.getFreeLists().accept(this);
|
||||
}
|
||||
|
||||
if (x.getFreeListGroups() != null) {
|
||||
print(" FREELIST GROUPS ");
|
||||
x.getInitial().accept(this);
|
||||
x.getFreeListGroups().accept(this);
|
||||
}
|
||||
|
||||
if (x.getBufferPool() != null) {
|
||||
print(" BUFFER_POOL ");
|
||||
x.getInitial().accept(this);
|
||||
x.getBufferPool().accept(this);
|
||||
}
|
||||
|
||||
if (x.getObjno() != null) {
|
||||
print(" OBJNO ");
|
||||
x.getObjno().accept(this);
|
||||
}
|
||||
|
||||
print(")");
|
||||
|
||||
@@ -263,6 +263,10 @@ public class TestTransform extends OracleTest {
|
||||
} else {
|
||||
String part = rs.getString(5);
|
||||
|
||||
if (part == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int commentIndex = part.indexOf("--");
|
||||
if (commentIndex != -1) {
|
||||
part = part.substring(0, commentIndex);
|
||||
|
||||
Reference in New Issue
Block a user