Incorrect mapping for BLOB in JDBC

オープン
#273 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java, sqlite

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Java
スター
3.3k
フォーク
676
平均マージ
1日 15時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

xerial/sqlite-jdbc のほかの issue

xerial/sqlite-jdbc の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。