Skip to content

Minor issue: space needed before table_options #68

@shelly-li-sl

Description

@shelly-li-sl

When using gorm:table_options with migrator, the generated 'create table' clause looks like the following, a space is missing before keyword 'TABLESPACE'.

===gorm:table_options
DB.Set("gorm:table_options", "TABLESPACE SYSAUX").AutoMigrate(&JsonRecord{});

===Generated create table sql:
2025/09/17 00:57:38 �[32m/scratch/shulili/GORM/gorm-github/gorm-oracle/oracle/migrator.go:208
�[0m�[33m[13.631ms] �[34;1m[rows:0]�[0m CREATE TABLE "json_records" ("record_id" NUMBER(20) GENERATED BY DEFAULT AS IDENTITY,"name" VARCHAR2(4000),"properties" JSON,PRIMARY KEY ("record_id"))TABLESPACE SYSAUX

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