Skip to content

sea-orm-cli generate entity panics with "not implemented" on Decimal column (2.0.0-rc.41) #3092

Description

@jvcByte

Description

sea-orm-cli generate entity panics with "not implemented" when processing a Decimal column using the --entity-format expanded option.

Steps to Reproduce

  1. Run the following command (using a Neon Postgres database), replace database url with actual database url:
sea-orm-cli generate entity \
  -o database/entity/src/ \
  -u "postgresql://..." \
  --entity-format expanded \
  --max-connections 1
  1. The command processes several tables successfully, then fails on the exercises table.

Expected Behavior

The CLI should successfully generate entity files for all tables, including those with Decimal columns.

Actual Behavior

Generation fails with a panic:

thread 'main' (368462) panicked at /home/.../sea-orm-codegen-2.0.0-rc.41/src/entity/column.rs:209:22:
not implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

It fails specifically while processing this column in the exercises table:

  • pass_mark: Option<Decimal>

Reproduces How Often

Always (on this schema).

Workarounds

  • Use --entity-format dense instead of expanded (recommended for SeaORM 2.0 anyway).
  • Manually write entities using the new #[sea_orm::model] macro.

Versions

  • sea-orm-cli: 2.0.0-rc.41
  • sea-orm-codegen: 2.0.0-rc.41
  • Database: PostgreSQL (Neon serverless)
  • OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions