sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

NullX comment has wrong type

Open kevinburke opened this issue 2 years ago • 0 comments

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

kevinburke avatar Aug 09 '22 13:08 kevinburke