JDBC driver impl of DatabaseMetadata#getTypeInfo() is rather incomplete

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

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

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

評価

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

調査の方向性

The issue demonstrates the output of DatabaseMetadata#getTypeInfo() but names no implementation file or test. Start by locating that method and its tests, then compare the reported five rows with SQLite’s available SQL types. Done means the result includes the supported type mappings; the issue gives no expected complete mapping to verify against.

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

説明

needs rework triage

The result returned from DatabaseMetadata#getTypeInfo() is a very small (useless) subset of the SQL types sqlite provides.

  1. Run the following on any database:
ResultSet rs = dbMetaData.getTypeInfo();
while (rs.next())
  out.println(rs.getString("TYPE_NAME") + "\t" + JDBCType.valueOf(rs.getInt("DATA_TYPE")).getName());
  1. Result:
BLOB	BLOB
INTEGER	INTEGER
NULL	NULL
REAL	REAL
TEXT	VARCHAR
  1. As you can see, these mappings only cover a small fraction of the available sqlite SQL types. I was hoping to use this to overcome https://github.com/xerial/sqlite-jdbc/issues/935.
  2. Given all the shortcuts taken in this driver wrt type-safety, one has to conclude the implementers don't consider type-safety a worthwhile aspect. If that is the case, please let me know so I can account for that in my project (and stop filing issues here). Thanks.
主要言語
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 を短くまとめたダイジェスト。