diff --git a/source/hunt/sql/ast/expr/SQLNCharExpr.d b/source/hunt/sql/ast/expr/SQLNCharExpr.d index a8959b0..a8a25e2 100755 --- a/source/hunt/sql/ast/expr/SQLNCharExpr.d +++ b/source/hunt/sql/ast/expr/SQLNCharExpr.d @@ -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; } diff --git a/source/hunt/sql/visitor/SQLASTOutputVisitor.d b/source/hunt/sql/visitor/SQLASTOutputVisitor.d index e6cbed5..0ea4db2 100755 --- a/source/hunt/sql/visitor/SQLASTOutputVisitor.d +++ b/source/hunt/sql/visitor/SQLASTOutputVisitor.d @@ -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'");