spanner/spannertest: handle returning bool values through the RPC interface

Change-Id: I228b5d90979db14d3d51a08ee940f9e077834d69
Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/44237
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Knut Olav Løite <koloite@gmail.com>
diff --git a/spanner/spannertest/inmem.go b/spanner/spannertest/inmem.go
index 67e3bc6..2ad3c49 100644
--- a/spanner/spannertest/inmem.go
+++ b/spanner/spannertest/inmem.go
@@ -698,6 +698,8 @@
 	switch x := x.(type) {
 	default:
 		return nil, fmt.Errorf("unhandled database value type %T", x)
+	case bool:
+		return &structpb.Value{Kind: &structpb.Value_BoolValue{x}}, nil
 	case int64:
 		// The Spanner int64 is actually a decimal string.
 		s := strconv.FormatInt(x, 10)