Skip to content

Commit 9ca7288

Browse files
committed
Fixed table descriptions cache
1 parent d415953 commit 9ca7288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jdbc/src/main/java/tech/ydb/jdbc/context/YdbContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public YdbPreparedQuery findOrPrepareParams(YdbQuery query, YdbPrepareMode mode)
413413

414414
if (result.isSuccess()) {
415415
description = result.getValue();
416-
tableDescribeCache.put(query.getOriginQuery(), description);
416+
tableDescribeCache.put(tablePath, description);
417417
} else {
418418
if (type == QueryType.BULK_QUERY) {
419419
throw new SQLException(YdbConst.BULKS_DESCRIBE_ERROR + result.getStatus());

0 commit comments

Comments
 (0)