Stored procedure owner is different in `box.space.func` and `_pico_routine`
- ǀ id ǀownerǀ name ǀsetuidǀlanguageǀ body ǀ
- ǀ32001ǀ 32 ǀ "PROC1" ǀ 0 ǀ "LUA" ǀ"function() error(\"function PROC1 is used internally by picodata\") end"
picodata> SELECT * FROM "_pico_routine"
---
- metadata:
- {'name': 'id', 'type': 'unsigned'}
- {'name': 'name', 'type': 'string'}
- {'name': 'kind', 'type': 'string'}
- {'name': 'params', 'type': 'array'}
- {'name': 'returns', 'type': 'array'}
- {'name': 'language', 'type': 'string'}
- {'name': 'body', 'type': 'string'}
- {'name': 'security', 'type': 'string'}
- {'name': 'operable', 'type': 'boolean'}
- {'name': 'schema_version', 'type': 'unsigned'}
- {'name': 'owner', 'type': 'unsigned'}
rows:
- [32001, 'PROC1', 'procedure', [['in', 'integer', null]], [], 'sql', 'insert into
t values(?, ?)', 'invoker', true, 2, 1]
They should match. Needs investigation. I suspect that box.session.su is missed/incorrectly used somewhere