我想在单个事务中执行一些代码。我使用 tarantool 1.6 和 python 客户端(0.5.4) 我的代码看起来像这样(它不起作用):
import tarantool
tnt = tarantool.Connection(**params)
tnt.call('box.begin')
tnt.update(space1, 1, [('=', 2, 100)])
tnt.update(space2, 1, [('+', 1, 200)])
tnt.call('box.comit')
我收到错误:
tarantool.error.DatabaseError: (33, "Procedure 'box.comit' is not defined")
怎么了?如何从 python 调用 box.comit?