JSON column type not supported

Created on 18 July 2022, over 2 years ago
Updated 26 February 2024, 10 months ago

Problem/Motivation

I'm using the latest stable version of this module to build reports in Drupal 9 displaying data from some custom MariaDB tables. We are using MariaDB 10.5. Some of our columns are of the type JSON. These are not made available to views.

Steps to reproduce

  1. Create a custom table, for example in the Drupal db, with one or more JSON columns.
  2. Add the table as custom table in views custom table.
  3. Create a new view using the custom table and see that the JSON columns are missing in the overlay adding fields to the view.

Proposed resolution

Add json to the list of text types in view_custom_table_views_data().

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇰Denmark beltofte Copenhagen 🇩🇰

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024