Skip to content

Commit faf4c4b

Browse files
author
tyron
committed
test empty and nullable items arrays
1 parent d715628 commit faf4c4b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/CommandTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public function testArrays()
114114
'Array_UInt8' => [5],
115115
'Array_Float64' => [5.5],
116116
'Array_String' => ['asdasd'],
117-
'Array_DateTime' => [date('Y-m-d H:i:s')]
117+
'Array_DateTime' => [date('Y-m-d H:i:s')],
118+
'Array_Nullable_Decimal' => [null, null],
119+
'Array_FixedString_empty' => [],
118120
];
119121

120122
$this->assertEquals(1, $db->createCommand()->insert('{{arrays}}', $dataForInsert)->execute());

tests/data/clickhouse.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ CREATE TABLE `types` (
4646
`Array_UInt8` Array(UInt8),
4747
`Array_Float64` Array(Float64),
4848
`Array_String` Array(String),
49-
`Array_DateTime` Array(DateTime)
49+
`Array_DateTime` Array(DateTime),
50+
`Array_Nullable_Decimal` Array(Nullable(Decimal32(4))),
51+
`Array_FixedString_empty` Array(FixedString(2))
5052
) ENGINE=Memory;

0 commit comments

Comments
 (0)