// Basically they've added column properties (i.e. SORT option, ENCRYPT encryption_spec)
// Need to 1) Override parseColumnDefinition shouldParseOracleProceduresAndFunctionsto handle these.
String tableElementString = getTableElementsString(tokens, false);
DdlTokenStream localTokens = new DdlTokenStream(tableElementString, DdlTokenStream.ddlTokenizer(false), false);
localTokens.start();
StringBuffer unusedTokensSB = new StringBuffer();
do {
if (isColumnDefinitionStart(localTokens)) {
parseColumnDefinition(localTokens, tableNode, true);
} else {
// THIS IS AN ERROR. NOTHING FOUND.
// NEED TO absorb tokens
while (localTokens.hasNext() && !localTokens.matches(COMMA)) {
unusedTokensSB.append(SPACE).append(localTokens.consume());
}
}
} while (localTokens.canConsume(COMMA));
if (unusedTokensSB.length() > 0) {
String msg = DdlSequencerI18n.unusedTokensParsingColumnDefinition.text(tableNode.getProperty(StandardDdlLexicon.NAME));
DdlParserProblem problem = new DdlParserProblem(Problems.WARNING, getCurrentMarkedPosition(), msg);
problem.setUnusedSource(unusedTokensSB.toString());