diff --git a/test/sophia/transaction.test.lua b/test/sophia/transaction.test.lua index 7d894d612b7b3d64e9ccf6c7cacfcd6c26dd36e1..744a4f29c1bc5e353c8c8449dae65d54ff5223d9 100644 --- a/test/sophia/transaction.test.lua +++ b/test/sophia/transaction.test.lua @@ -78,3 +78,12 @@ for key = 1, 10 do assert(#b:select({key}) == 0) end t a:drop() b:drop() + + +-- ensure findByKey works in empty transaction context +space = box.schema.space.create('test', { engine = 'sophia' }) +index = space:create_index('primary', { type = 'tree', parts = {1, 'num'} }) +box.begin() +space:get({0}) +box.rollback() +space:drop()