Skip to content

Image collection CREATE OR REPLACE returns 'already exists' instead of replacing #477

@retran

Description

@retran

Summary

CREATE OR REPLACE IMAGE COLLECTION fails with "image collection already exists" error when the collection already exists — the OR REPLACE clause is not functional.

Reproduction

CREATE IMAGE COLLECTION MyModule.Icons;
-- succeeds

CREATE OR REPLACE IMAGE COLLECTION MyModule.Icons;
-- Error: image collection already exists: MyModule.Icons

Expected behavior

CREATE OR REPLACE should replace (or be a no-op) if the collection already exists, matching the behavior of CREATE OR REPLACE for other document types.

Version

mxcli v0.7.0-368-g5a109a0e

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