Skip to content

postgresql jsonb type fields displayed as "empty" #7297

@thomas-szczurek

Description

@thomas-szczurek

What is the bug or the crash? What were your expectations and what actually happened?

Hello,

postgresql jsonb type field are displayed as "empty" in qfield while they are displayed in qgis.

But perhaps that's an enhancement ?

Steps to reproduce the issue

1 - create a jsonb type field in a table

CREATE TABLE test.test (
    pk int4 PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
    test text,
    test_json jsonb,
    geom geometry ('POINT', 2154)
);

2 - create a point

3 - insert random json statement

UPDATE test.test SET test_json = '{"state1":"not ok", "state2":"ok"}'::jsonb WHERE pk = 1;

4 - make a qfield project with this table
5 - consult the entity in qfield

Image Image

Version

4.1.5 - Barents (9e9b946)

Operating system name

Android

Operating system version

15

Reinstall QField

  • I have a fresh install of the latest QField version, but the problem persists.
  • Problem can be reliably reproduced, doesn't happen randomly.
  • Problem happens with all files and projects, not only some files or projects.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions