]> Cypherpunks repositories - gostls13.git/commit
database/sql: add NullInt32
authorDaniel Theophanes <kardianos@gmail.com>
Fri, 26 Apr 2019 18:46:26 +0000 (11:46 -0700)
committerDaniel Theophanes <kardianos@gmail.com>
Fri, 26 Apr 2019 21:54:41 +0000 (21:54 +0000)
commit2177bfb343c4950be88536044bb38c90f05ad3ed
tree6b31d58bf04346f6702fd1c7b02d287c7fa6ffbe
parent8ef45cf60b347abb1a08416fca1b6d19d317b26e
database/sql: add NullInt32

It is common for database integers to be represented as int32
internally. Although NullInt64 is already defined,
this should remove some type casts and make working with those eaiser.

For #31231

Change-Id: Ia0c37ecef035fee0734c1d1fb6f58aef6905cf5e
Reviewed-on: https://go-review.googlesource.com/c/go/+/174178
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/fakedb_test.go
src/database/sql/sql.go
src/database/sql/sql_test.go