Skip to content

postgresql 18 #943

Open
Open

Description

@yuan50697105

SQL: INSERT INTO t_sys_user ( id,nickname,password,username ) VALUES( ?,?,?,? )

Cause: org.postgresql.util.PSQLException: 错误: null value in column "id" of relation "t_sys_user" violates not-null constraint

详细:失败, 行包含(null, null, null, null, null, 管理员, , null, null, null, null, GOwq7EpfgIwq8TLG77SpUH4ugiSnNTWHYrdcd9IwPqxXxRPkY0).
; 错误: null value in column "id" of relation "t_sys_user" violates not-null constraint
详细:失败, 行包含(null, null, null, null, null, 管理员, , null, null, null, null, GOwq7EpfgIwq8TLG77SpUH4ugiSnNTWHYrdcd9IwPqxXxRPkY0).

Activity

  1. abel533 commented on Nov 17, 2025

    @abel533
    Owner

    给id配置insertable=false。

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