File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
spring-data-dialect/src/main/java/tech/ydb/data Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
package tech .ydb .data .core .convert ;
2
2
3
+ import java .sql .JDBCType ;
3
4
import java .sql .SQLType ;
4
-
5
- import tech .ydb .jdbc .YdbConst ;
6
5
import tech .ydb .table .values .PrimitiveType ;
7
6
8
7
/**
@@ -21,6 +20,6 @@ public String getVendor() {
21
20
22
21
@ Override
23
22
public Integer getVendorTypeNumber () {
24
- return YdbConst . SQL_KIND_PRIMITIVE + type . ordinal ();
23
+ return JDBCType . JAVA_OBJECT . getVendorTypeNumber ();
25
24
}
26
25
}
Original file line number Diff line number Diff line change 4
4
import java .sql .SQLType ;
5
5
import java .time .Instant ;
6
6
import java .time .LocalDate ;
7
- import java .time .LocalDateTime ;
8
7
import java .util .HashMap ;
9
8
import java .util .Map ;
10
-
11
9
import org .springframework .data .jdbc .support .JdbcUtil ;
12
10
import org .springframework .util .Assert ;
13
11
@@ -18,7 +16,6 @@ public final class YdbJdbcUtil {
18
16
private static final Map <Class <?>, SQLType > sqlTypeByClass = new HashMap <>();
19
17
20
18
static {
21
- sqlTypeByClass .put (LocalDateTime .class , JDBCType .TIME );
22
19
sqlTypeByClass .put (LocalDate .class , JDBCType .DATE );
23
20
sqlTypeByClass .put (Instant .class , JDBCType .TIMESTAMP );
24
21
}
You can’t perform that action at this time.
0 commit comments