Skip to content

CockroachDB: expand $getType() coverage in model adapter #1974

@bpamiri

Description

@bpamiri

Summary

CockroachDBModel only overrides $getType() for 4 type cases (bool, boolean, bit, varbit). Other CockroachDB-specific types may need explicit handling.

Details

  • CockroachDB returns STRING for string columns (PostgreSQL returns varchar/text)
  • JSONB handling may differ from PostgreSQL
  • BYTES type (CockroachDB's binary) vs PostgreSQL's bytea
  • INTERVAL, INET type handling
  • Should verify full type introspection against a real CockroachDB instance

Files

  • vendor/wheels/databaseAdapters/CockroachDB/CockroachDBModel.cfc — expand $getType() switch
  • vendor/wheels/databaseAdapters/PostgreSQL/PostgreSQLModel.cfc:8-95 — inherited type map

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions