BUG: org.h2.jdbc.JdbcSQLNonTransientException: Unknown data type: "INET"

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

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

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

評価

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

調査の方向性

Start by reproducing the failure with H2 in PostgreSQL compatibility mode and a table containing an INET column. Read the database type-handling and compatibility behavior involved, then verify that the affected table can be created and used without the unknown-data-type exception.

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

説明

What Went Wrong?

I'm using H2 as a database, specifically using PostgreSQL compatibility mode. One of the columns types, however, is INET. This is supported by PostgreSQL natively. It seems that H2 does not support this datatype even when using the postgres compatibility mode. It does not completely crash the database, it seems to stand up just fine, but not for the specific tables that include columns of that datatype.

This poses an issue for my usage of H2 as it does not fully stand up the database properly, and I cannot change the datatype in this circumstance. I'm wondering if there are any known workarounds, and if not, if this could be fixed? Thanks.

主要言語
Java
スター
4.6k
フォーク
1.3k
平均マージ
1日 21時間
マージ済み PR(30日)
59

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

h2database/h2database のほかの issue

h2database/h2database の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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