@@ -1908,7 +1908,7 @@ func TestSchema(t *testing.T) {
1908
1908
if space .Engine != "memtx" {
1909
1909
t .Errorf ("space 616 engine should be memtx" )
1910
1910
}
1911
- if space .FieldsCount != 7 {
1911
+ if space .FieldsCount != 8 {
1912
1912
t .Errorf ("space 616 has incorrect fields count" )
1913
1913
}
1914
1914
@@ -1918,14 +1918,14 @@ func TestSchema(t *testing.T) {
1918
1918
if space .Fields == nil {
1919
1919
t .Errorf ("space.Fields is nill" )
1920
1920
}
1921
- if len (space .FieldsById ) != 6 {
1921
+ if len (space .FieldsById ) != 7 {
1922
1922
t .Errorf ("space.FieldsById len is incorrect" )
1923
1923
}
1924
- if len (space .Fields ) != 6 {
1924
+ if len (space .Fields ) != 7 {
1925
1925
t .Errorf ("space.Fields len is incorrect" )
1926
1926
}
1927
1927
1928
- var field1 , field2 , field5 , field1n , field5n * Field
1928
+ var field1 , field2 , field5 , field1n , field5n , field_nullable * Field
1929
1929
if field1 , ok = space .FieldsById [1 ]; ! ok {
1930
1930
t .Errorf ("field id = 1 was not found" )
1931
1931
}
@@ -1957,6 +1957,12 @@ func TestSchema(t *testing.T) {
1957
1957
if field2 .Type != "string" {
1958
1958
t .Errorf ("field 2 has incorrect Type" )
1959
1959
}
1960
+ if field_nullable , ok = space .Fields ["nullable" ]; ! ok {
1961
+ t .Errorf ("field name = nullable was not found" )
1962
+ }
1963
+ if ! field_nullable .IsNullable {
1964
+ t .Errorf ("field nullable has incorrect IsNullable" )
1965
+ }
1960
1966
1961
1967
if space .IndexesById == nil {
1962
1968
t .Errorf ("space.IndexesById is nill" )
0 commit comments