Skip to content

Commit

Permalink
See #60628 fix default value for procedures
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhan808 committed Mar 23, 2021
1 parent 3bd9e94 commit 973b8be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ public void enterDeclare_block_without_params(ProcedureParserParser.Declare_bloc
variable.setDomain(type.domain_name().getText());
}
if (type.datatypeSQL() != null && !type.datatypeSQL().isEmpty()) {
variable.setSqlType(type.datatypeSQL().getText());
List<ParseTree> children = type.datatypeSQL().children;
variable.setSqlType(children.get(0).getText());
if (type.datatypeSQL().type_size() != null && type.datatypeSQL().type_size().isEmpty()) {
variable.setSize(Integer.parseInt(type.datatypeSQL().type_size().getText()));
}
Expand Down

0 comments on commit 973b8be

Please sign in to comment.