Skip to content

自动生成代码 遇到单引号的注释 会报错 #112

Open
@spzgy

Description

@spzgy

Describe the bug
Sql 构建服务生产代码时,
连接的是postgresql
例如,字段的注释为: Leader's phone number
只要注释中包含单引号,就会报错
把所有单引号的字段注释,都去掉就好了.

报错内容为:
Error: line 8 column 56 near " | �级�表', leadervarchar(100) null comment 'Department leader | ���责人',phonevarchar(100) null comment 'Leader's phone number | �责人��',emailvarchar(100) null comment 'Leader's email | ���责人���箱',remarkvarchar(100) null comment 'Remark | �注',parent_id bigint null comment 'Parent department ID | �级��ID', PRIMARY KEY (id) );" (total length 927)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions