Closed SimoneLazzaris closed 1 year ago
With current master I'm not able to reproduce it.
Expected error is returned instead "table does not exist (t)"
, error detected when parsing the sql statement
Actually, I'm not able to reproduce it either with v1.4.1
commit 99e4f1ea5970177be5287da2529849cd5ee64696 (HEAD, tag: v1.4.1, origin/release/v1.4.1)
Tried again, it is not triggering if table t
is missing or empty.
After inserting a couple of rows, it will trigger:
immuclient>exec CREATE TABLE IF NOT EXISTS t (id VARCHAR[256], value INTEGER, PRIMARY KEY id)
Updated rows: 0
immuclient>exec insert into t(id,value) values('aa',12);
Updated rows: 1
immuclient>exec insert into t(id,value) values('ab',13);
Updated rows: 1
and then go run
What happened
Immudb server crashed when executing an (invalid) SQLExec query
What you expected to happen
Invalid or inconsistent queries should rejected in the client SDK, and definitively shouldn't crash the server
How to reproduce it (as minimally and precisely as possible) Create this table on immudb,
defaultdb
database:Then execute this go code:
Environment