@@ -33,11 +33,11 @@ func Test_Nullable(t *testing.T) {
33
33
dml = `
34
34
INSERT INTO clickhouse_test_nullable (
35
35
int8,
36
- int16,
36
+ int16,
37
37
int32,
38
38
int64,
39
- uint8,
40
- uint16,
39
+ uint8,
40
+ uint16,
41
41
uint32,
42
42
uint64,
43
43
float32,
@@ -49,8 +49,8 @@ func Test_Nullable(t *testing.T) {
49
49
enum8,
50
50
enum16
51
51
) VALUES (
52
- ?,
53
- ?,
52
+ ?,
53
+ ?,
54
54
?,
55
55
?,
56
56
?,
@@ -68,13 +68,13 @@ func Test_Nullable(t *testing.T) {
68
68
)
69
69
`
70
70
query = `
71
- SELECT
72
- int8,
73
- int16,
71
+ SELECT
72
+ int8,
73
+ int16,
74
74
int32,
75
75
int64,
76
- uint8,
77
- uint16,
76
+ uint8,
77
+ uint16,
78
78
uint32,
79
79
uint64,
80
80
float32,
@@ -273,13 +273,13 @@ func Test_Nullable(t *testing.T) {
273
273
& Enum8 ,
274
274
& Enum16 ,
275
275
); assert .NoError (t , err ) {
276
- if assert .Nil (t , Int8 ) {
277
- if assert .NotNil (t , Int16 ) {
276
+ if assert .NotNil (t , Int8 ) {
277
+ if assert .Equal ( t , int8 ( 0 ), * Int8 ) && assert . NotNil (t , Int16 ) {
278
278
assert .Equal (t , int16 (16 ), * Int16 )
279
279
}
280
280
}
281
- if assert .Nil (t , Int32 ) {
282
- if assert .NotNil (t , Int64 ) {
281
+ if assert .NotNil (t , Int32 ) {
282
+ if assert .Equal ( t , int32 ( 0 ), * Int32 ) && assert . NotNil (t , Int64 ) {
283
283
assert .Equal (t , int64 (64 ), * Int64 )
284
284
}
285
285
}
0 commit comments