Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed May 23, 2019
1 parent b245e07 commit edc618a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/hunt/sql/ast/expr/SQLNCharExpr.d
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class SQLNCharExpr : SQLTextLiteralExpr {
}

override public void output(StringBuffer buf) {
if ((this.text is null) || (this.text.length == 0)) {
if ((this.text is null) || (this.text.value.length == 0)) {
buf.append("NULL");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion source/hunt/sql/visitor/SQLASTOutputVisitor.d
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ public class SQLASTOutputVisitor : SQLASTVisitorAdapter , ParameterizedVisitor,
return false;
}

if ((x.getText() is null) || (x.getText().length == 0)) {
if ((x.getText() is null) || (x.getText().value.length == 0)) {
print0(ucase ? "NULL" : "null");
} else {
print0(ucase ? "N'" : "n'");
Expand Down

0 comments on commit edc618a

Please sign in to comment.