KipData/FnckSQL

can not select from exsiting table after rebooting

sacloudy opened this issue · 1 comments

Bug Report

What version of KipSQL are you using?

What version of Rust are you using?

What's the status of the running?

What did you do?
create table t1 (a int primary key, b int, k int)
insert into t1 (a, b, k) values (-99, 1, 1), (-1, 2, 2), (5, 2, 2)
quit
cargo run
select * from t1

What did you expect to see?
(-99, 1, 1), (-1, 2, 2), (5, 2, 2)

What did you see instead?
Oops!: bind error: invalid table bind table t1

KKould commented

It may be that the ColumnId is duplicated after restarting. It has been fixed on the PR of the index.