Skip to content

Commit 3b65c2b

Browse files
XenoAmesswenshao
authored andcommitted
bug in RestoreVisitor.visit
1 parent 85a0522 commit 3b65c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alibaba/druid/sql/visitor/ParameterizedOutputVisitorUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public boolean visit(SQLVariantRefExpr x) {
480480

481481
if (c0 == '#' && c1 == '{' && c1x == '}') {
482482
String key = name.substring(2, name.length() - 1);
483-
Object value = parameters.get(x);
483+
Object value = parameters.get(key);
484484
SQLExpr expr = SQLExprUtils.fromJavaObject(value, timeZone);
485485
SQLUtils.replaceInParent(x, expr);
486486
}

0 commit comments

Comments
 (0)