Skip to content

DESCRIBE ENUMERATION emits unescaped single quotes in captions #394

Description

@retran

Impact

DESCRIBE output produces invalid MDL — re-executing it causes a parse error. Breaks roundtrip for any caption containing an apostrophe.

Steps to Reproduce

CREATE ENUMERATION MyModule."TestEnum" (
  "Value1" CAPTION 'It''s a test'
);

Then run:

DESCRIBE ENUMERATION MyModule.TestEnum

Actual Result

Output contains 'It's a test' — unescaped single quote inside a string literal.

Expected Result

DESCRIBE escapes single quotes as '': 'It''s a test'.

Severity

Medium


Discovered during AI-assisted manual testing session (2026-04-29, mxcli v0.7.0-257-ga07e7e0).

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