-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Milestone
Description
database/sql doesn't have NullUInt64. So drivers and ORMs may implement their own NullUInt64.
Application developers would be confused which NullUInt64 is returned by dynamic Scan methods.
When NullUInt64 was proposed in past, @a8m, @kardianos, @rsc said "wait for generic".
#47953 (comment)
Now we have generics. So can we have it for now? Should it Null[T] or Nullable[T]?
Here is quick implementation: https://go.dev/play/p/Jtx8hP0H1_Z
quanqqqqq, mibk, crossworth, mrg0lden, cristaloleg and 21 more