Crash on parameterized insertion
pico.sql([[create table "planes" ("id" Unsigned not null, "code" String, primary key ("id")) using memtx distributed by ("id") option (timeout = 3)]])
Crash on param insert:
pico.sql([[insert into "planes" ("id", "code") values (?,?)]], {1, null})
thread 'main' panicked at 'attempt to subtract with overflow', sbroad/sbroad-core/src/ir/api/parameter.rs:167:33
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: Rust panics must be rethrown
[supervisor:6402] no ipc message from child
[supervisor:6402] subprocess 6403 was signaled with SIGABRT
Error on non-param insert:
pico.sql([[insert into "planes" ("id", "code") values (1, NULL)]], {})
---
- null
- 'sbroad: Lua error (IR dispatch): LuaError(ExecutionError("sbroad: failed to create
transaction: RolledBack(FailedTo(Insert, Some(Space), \"tarantool error: FieldType:
Tuple field 3 (code) type does not match one required by operation: expected string,
got nil\"))"))'