Skip to content

NullX comment has wrong type #1789

@kevinburke

Description

@kevinburke

Version

Other

What happened?

I got this output when updating to v1.15.0:

 type DeliveryStrategy string

+type NullDeliveryStrategy struct {
+	DeliveryStrategy DeliveryStrategy
+	Valid            bool // Valid is true if String is not NULL
+}

I think the comment should read "if DeliveryStrategy is not NULL" because there's no property named String.

This should be fairly easy to reproduce so not including more info.

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions