Skip to content

DESCRIBE ENUMERATION returns empty captions for values that have captions defined in Studio Pro #1113

Description

@brinkhuisjelmer-lgtm

Summary
mxcli describe enumeration <Module.Enum> (and the equivalent DESCRIBE ENUMERATION MDL command) always prints an empty caption ('') for every enumeration value, even when Studio Pro shows a populated caption for that value in the enumeration editor.

Steps to reproduce

  1. In Studio Pro, create an enumeration with a few values and give each value a distinct, non-empty caption (visible in the enumeration editor's Caption column).
  2. Save the project.
  3. Run mxcli -p project.mpr -c "DESCRIBE ENUMERATION Module.MyEnum".

Expected
Each value's caption is printed, e.g. MyValue 'My Readable Caption'.

Actual
Every value comes back with an empty caption: MyValue '', regardless of what's configured in Studio Pro.

Impact
Because DESCRIBE output is meant to be round-trippable MDL, re-executing it (e.g. to replicate or restore the enumeration) would silently wipe real captions and replace them with empty strings. It also misleads any analysis that relies on DESCRIBE/SHOW to determine whether captions exist — the enum incorrectly appears to have none at all.

Environment

  • Confirmed on mxcli v0.18.0 and v0.22.0 (identical behavior on both)
  • Windows
  • Single-language project (only one language configured) — so this isn't a non-default-language lookup issue; the default/only language's caption isn't read either
  • SELECT * FROM CATALOG.ENUMERATIONS also doesn't expose caption text, so there's currently no mxcli-based way to verify a caption exists

Note
Possibly related to #970 (captions written via MDL always landing as en_US), but this is about reading existing captions, not writing them.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions