FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(mysql): round-trip BOOLEAN / BIT / BLOB / JSON in the grid · Issue #806 · QueryaHub/Querya-Desktop · GitHub

fix(mysql): round-trip BOOLEAN / BIT / BLOB / JSON in the grid #806

Description

Summary

information_schema.COLUMNS.DATA_TYPE is tinyint for BOOLEAN (TINYINT(1)), not tinyint(1) / boolean. TableMutationEngine._isBoolType looks for tinyint(1) — bool columns are treated as numeric.

BIT/BLOB/BINARY go through resultCellToDisplayString → toString(). JSON is text-typed (OK if the driver returns a string). COLUMN_TYPE / display width is not fetched.

docker/mysql/init/02_all_types.sql already has the types.

Scope

  • Use COLUMN_TYPE (or tinyint + display width / COLUMN_COMMENT) so BOOLEAN stays 0/1 / TRUE/FALSE.
  • Display BIT/BLOB as hex; persist the same.
  • Tests against all_mysql_types (or a subset): boolean, bit, blob, json.

Out of scope

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdata-gridInteractive data grid, cell editor, filtering, groupingsmysqlMySQL database driver and workspace

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL