Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL JSONB type not recognized #606

Closed
yz778 opened this issue Apr 8, 2019 · 4 comments
Closed

PostgreSQL JSONB type not recognized #606

yz778 opened this issue Apr 8, 2019 · 4 comments

Comments

@yz778
Copy link

yz778 commented Apr 8, 2019

Steps to reproduce this issue

  1. Create Table, add Column. JSONB is not in the dropdown.
  2. Create table by SQL:
CREATE TABLE test (
    val1 JSON,
    val2 JSONB
)
  1. Verify table created successfully:
SELECT
	column_name,
	data_type
FROM INFORMATION_SCHEMA.COLUMNS 
WHERE table_name = 'test';

Shows

column_name   data_type
val1          json
val2          jsonb
  1. Refresh DB browser, Edit table - Datatype for val2 column listed as UNKNOWN. Also in logs we see: /* Unknown datatype "JSONB" for "val2". Fall back to UNKNOWN. */

Current behavior

JSONB data type not recognized.

Expected behavior

JSONB data type should be recognized, it's functionally equivalent to JSON.

Possible solution

Add JSONB as valid datatype for PostgreSQL.

Environment

  • HeidiSQL version:
    10.1.0.5464
  • Database system and version:
    psql (PostgreSQL) 10.7 (Ubuntu 10.7-0ubuntu0.18.04.1)
@albertotn
Copy link

Just found this blocking problem, when creatign a table with jsonb type, column is UNKNOWN:

immagine

configuration order is jsonb type

@noxonsu
Copy link

noxonsu commented Sep 21, 2020

same problem

@ansgarbecker ansgarbecker added this to the v11.2 milestone Sep 21, 2020
@bpasha7
Copy link

bpasha7 commented Oct 13, 2020

same problem

@ansgarbecker
Copy link
Collaborator

Next build now supports JSONB columns:
grafik

However, not sure if editing such columns in the data grid or query grid fails, as it's binary data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants