You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to open Attribute Table Manager for a layer with TEXT data column containing newline throws an exception:
Error
Unable to read the table <blobtest> from the database due to seemingly inconsistent number of columns in the data transfer. Check row: "a": "10",... Likely, a newline character is present in the attribute value starting with: '"a": "10",' Use the v.db.select module to investigate.
Reason: Unable to read the table <blobtest> from the database due to seemingly inconsistent number of columns in the data transfer. Check row: "a": "10",... Likely, a newline character is present in the attribute value starting with: '"a": "10",' Use the v.db.select module to investigate.
Traceback (most recent call last):
File "/dev/grass/dist.aarch64-apple-darwin21.6.0/gui/wxpython/dbmgr/base.py", line 129, in __init__
keyColumn = self.LoadData(layer)
File "/dev/grass/dist.aarch64-apple-darwin21.6.0/gui/wxpython/dbmgr/base.py", line 325, in LoadData
raise GException(
core.gcmd.GException: Unable to read the table <blobtest> from the database due to seemingly inconsistent number of columns in the data transfer. Check row: "a": "10",... Likely, a newline character is present in the attribute value starting with: '"a": "10",' Use the v.db.select module to investigate.
In GUI, choose "Show Attribute data" in Layers panel.
Expected behavior
Attribute table should open without exception.
Possible solution for the TEXT fields:
a) Non-editable with a eg. '<TEXT>' stand-in displayed.
b) Contains button which opens a mini text edit window, enabling editing and or viewing.
System description (please complete the following information):
Operating System: all
GRASS GIS version 8
The text was updated successfully, but these errors were encountered:
The parsing in GUI was written before there was JSON and real CSV outputs in v.db.select. Basically the same story as for vector_db_select (#2576). db.select may need these too in order to fix the GUI code.
Describe the bug
Attempt to open Attribute Table Manager for a layer with TEXT data column containing newline throws an exception:
The data table:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Attribute table should open without exception.
Possible solution for the TEXT fields:
a) Non-editable with a eg. '<TEXT>' stand-in displayed.
b) Contains button which opens a mini text edit window, enabling editing and or viewing.
System description (please complete the following information):
The text was updated successfully, but these errors were encountered: