Skip to content

Commit

Permalink
dev: update jdbc driver version
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillKurdyukov committed Aug 21, 2024
1 parent a12703a commit ca265aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package tech.ydb.data.core.convert;

import java.sql.JDBCType;
import java.sql.SQLType;

import tech.ydb.jdbc.YdbConst;
import tech.ydb.table.values.PrimitiveType;

/**
Expand All @@ -21,6 +20,6 @@ public String getVendor() {

@Override
public Integer getVendorTypeNumber() {
return YdbConst.SQL_KIND_PRIMITIVE + type.ordinal();
return JDBCType.JAVA_OBJECT.getVendorTypeNumber();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
import java.sql.SQLType;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

import org.springframework.data.jdbc.support.JdbcUtil;
import org.springframework.util.Assert;

Expand All @@ -18,7 +16,6 @@ public final class YdbJdbcUtil {
private static final Map<Class<?>, SQLType> sqlTypeByClass = new HashMap<>();

static {
sqlTypeByClass.put(LocalDateTime.class, JDBCType.TIME);
sqlTypeByClass.put(LocalDate.class, JDBCType.DATE);
sqlTypeByClass.put(Instant.class, JDBCType.TIMESTAMP);
}
Expand Down

0 comments on commit ca265aa

Please sign in to comment.