镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

The field type is DateTime,the default value is null #1015

Closed

Description

@wdream

The field type is DateTime, the default value is null, and NullPointException when a query is mapped to a Java.
image

Activity

  1. zhicwu commented on Jul 27, 2022

    @zhicwu
    Contributor

    Hi @wdream, so the column is defined as ts DateTime DEFAULT NULL? Could you share more information to help me reproduce the issue?

  2. wdream commented on Jul 28, 2022

    @wdream
    Author

    gmt_register Nullable(DateTime) default NULL
    When you set it up like this, you get a problem

  3. zhicwu commented on Aug 2, 2022

    @zhicwu
    Contributor

    gmt_register Nullable(DateTime) default NULL When you set it up like this, you get a problem

    I assume you're using latest driver but I was not able to reproduce the issue. Could you provide more details and maybe minimum code for reproducing?

  4. wdream commented on Aug 8, 2022

    @wdream
    Author

    I use Java programming and set the field type as Date. When the type in DB is Nullable(DateTime) default NULL and the value is NULL, an error will be reported when the query comes out

  5. github-actions commented on Jan 8, 2025

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

  6. chernser commented on Nov 17, 2025

    @chernser
    Contributor

    Not a subject for V2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions