diff --git a/src/box/lua/schema.lua b/src/box/lua/schema.lua index d1a6a2376443fb87eb10d34ef0c3f1ee5239fbc4..cdfbb65f7380b1bdb4bd7183041eb256d63be119 100644 --- a/src/box/lua/schema.lua +++ b/src/box/lua/schema.lua @@ -354,7 +354,7 @@ end -- box.commit yields, so it's defined as Lua/C binding -- box.rollback and box.rollback_to_savepoint yields as well -function update_format(format) +local function update_format(format) local result = {} for i, given in ipairs(format) do local field = {} @@ -2641,7 +2641,7 @@ box.schema.role.drop = function(name, opts) return drop(uid) end -function role_check_grant_revoke_of_sys_priv(priv) +local function role_check_grant_revoke_of_sys_priv(priv) priv = string.lower(priv) if (type(priv) == 'string' and (priv:match("session") or priv:match("usage"))) or (type(priv) == "number" and (bit.band(priv, 8) ~= 0 or bit.band(priv, 16) ~= 0)) then