We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989e61f commit 42c01d5Copy full SHA for 42c01d5
test/cache_test.lua
@@ -230,3 +230,16 @@ function g.test_cache_space_updated_name()
230
t.assert_type(id, 'number')
231
t.assert_equals(id, 44)
232
end
233
+
234
+function g.test_cache_nil_space()
235
+ local sharding_func_first = 'sharding_func_first'
236
+ rawset(_G, sharding_func_first, function(key) return key + 1 end)
237
+ rawset(_G, 'sharding_func_second', function(key) return key + 2 end)
238
+ g.schema.spaces.space.sharding_func = sharding_func_first
239
+ local ok, err = ddl.set_schema(g.schema)
240
+ t.assert_equals(err, nil)
241
+ t.assert_equals(ok, true)
242
243
+ local res = cache.internal.get()
244
+ t.assert_equals(res, nil)
245
+end
0 commit comments