Incorrect mapping for BLOB in JDBC

Đang mở
#273 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, sqlite
Lĩnh vực
database, databases

Hướng nghiên cứu

Start by checking the ResultSetMetaData and DatabaseMetaData.getTypeInfo() mappings named in the issue, then compare their JDBC type codes with Appendix B of the JDBC 4.2 specification. Also review issue #182 for the related mapping mentioned there. Done means all affected BLOB mappings follow the specification and SQLite BLOB values are reported with the appropriate type.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

metadata

In JDBC specification ( http://download.oracle.com/otndocs/jcp/jdbc-4_2-mrel2-spec/index.html ) Appendix B, Types.BLOB type needs to be mapped to java.sql.Blob. In SQLite driver, it is mapped to byte[].

The main reason is that BLOB in SQLITE should be Types.VARBYTE instead of Types.BLOB.

This incorrect mapping is in several places. Here are the places that I am aware of

  1. ResultSetMetaData()
  2. DatabaseMetaData.getTypeInfo()

Issue #182 also mentions incorrect mapping in a place. I am opening a new issue since I think that this problem is a much more general issue.

Ngôn ngữ chính
Java
Star
3.3k
Fork
676
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của xerial/sqlite-jdbc

Tất cả issue của xerial/sqlite-jdbc

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.