Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1353)

Unified Diff: src/pkg/database/sql/driver/types_test.go

Issue 5630052: code review 5630052: database/sql: treat pointers as nullable types like enc...
Patch Set: diff -r 82bac8cdab6b50b9f42f1c203b694c0915be7fa6 https://go.googlecode.com/hg/ Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/database/sql/driver/types.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/database/sql/driver/types_test.go
===================================================================
--- a/src/pkg/database/sql/driver/types_test.go
+++ b/src/pkg/database/sql/driver/types_test.go
@@ -18,6 +18,7 @@
}
var now = time.Now()
+var answer int64 = 42
var valueConverterTests = []valueConverterTest{
{Bool, "true", true, ""},
@@ -37,6 +38,9 @@
{c: Bool, in: "foo", err: "sql/driver: couldn't convert \"foo\" into type bool"},
{c: Bool, in: 2, err: "sql/driver: couldn't convert 2 into type bool"},
{DefaultParameterConverter, now, now, ""},
+ {DefaultParameterConverter, (*int64)(nil), nil, ""},
+ {DefaultParameterConverter, &answer, answer, ""},
+ {DefaultParameterConverter, &now, now, ""},
}
func TestValueConverters(t *testing.T) {
« no previous file with comments | « src/pkg/database/sql/driver/types.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b