Skip to content

Commit dd372df

Browse files
authored
Add systest for round-trip of NULL INT64. (#3665)
Include NULL values in ARRAY<INT64>.
1 parent c5922c6 commit dd372df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spanner/tests/system/test_system.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,11 @@ class TestSessionAPI(unittest.TestCase, _TestData):
371371
BYTES_1 = b'Ymlu'
372372
BYTES_2 = b'Ym9vdHM='
373373
ALL_TYPES_ROWDATA = (
374+
([], False, None, None, 0.0, None, None, None),
374375
([1], True, BYTES_1, SOME_DATE, 0.0, 19, u'dog', SOME_TIME),
375376
([5, 10], True, BYTES_1, None, 1.25, 99, u'cat', None),
376377
([], False, BYTES_2, None, float('inf'), 107, u'frog', None),
377-
([], False, None, None, float('-inf'), 207, None, None),
378+
([3, None, 9], False, None, None, float('-inf'), 207, None, None),
378379
([], False, None, None, float('nan'), 1207, None, None),
379380
([], False, None, None, OTHER_NAN, 2000, None, NANO_TIME),
380381
)
@@ -903,7 +904,7 @@ def test_execute_sql_w_query_param(self):
903904
params={'lower': 0.0, 'upper': 1.0},
904905
param_types={
905906
'lower': Type(code=FLOAT64), 'upper': Type(code=FLOAT64)},
906-
expected=[(19,)],
907+
expected=[(None,), (19,)],
907908
)
908909

909910
# Find -inf

0 commit comments

Comments
 (0)