Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQuirreL SQL client does not show Json data

Tags:

I just have a Postgres database(PostgreSQL 9.4.5) and Squirrel windows client (SQuirreL SQL Client Version 3.7).

In database there is a table which has column type jsonb

 Column | Type --------+-------  id     | uuid  jddd   | jsonb 

when I do

select jddd from request; 

I see

<other> 

in the results area. When I do the same in psql command line client I see JSON data which are there. I tired to google it but I found no posts related to this topic at all.

This was promising https://sourceforge.net/p/squirrel-sql/bugs/1139/ but did not help neither:-(

Thanks in advance,

st.

like image 667
Stepik Avatar asked Feb 22 '16 15:02

Stepik


People also ask

What is view View in SQuirreL?

Click the name of the view that you want to display. A tab with the view name appears in the object pane, with the Columns subtab displayed. You can view the view definition on this tab.

Is SQuirreL SQL client free?

SQL Workbench/J is a free, DBMS-independent, cross-platform SQL query tool.

How do you describe a SQuirreL table?

After you open your session, click the Objects tab, then expand the tree. Expand the db, schema, and then table nodes, and you'll see all of your tables. If you click on a particular table node, a table will open to the right. By clicking the Columns tab, you can get the column names, types, and other meta data.


1 Answers

Under the following two sections:

  1. Global Preferences > Data Type Controls > SQL Other (SQL type 1111)
  2. Global Preferences > Data Type Controls > Unknown DataTypes (non-standard SQL type codes)

you should check the checkboxes saying

[X] Read contents when table is first loaded and display as string

as shown in the below image:

Snapshot for reference

like image 119
dopeddude Avatar answered Sep 18 '22 14:09

dopeddude