I have pushed my review fixes on the branch. Please, squash, ifHello! Thank you for so detailed review fixes.
you agree, and debug if the tests fail. Below you may find 3
comments that I fixed. Style violations I did not mentioned here.
Just fixed on the branch.
Also I have found that vdbe_emit_open_cursor() has the secondI've tried to do this and I'll append my diff to the end of this message,
parameter named 'index_id', but in some places the function
takes real index_id, in other places it takes tnum, and in vdbe
it is interpreted as tnum. Please, fix this mess in a separate
commit. I think, we should always pass index_id.
1. Unused array.You've fixed all of this.
2. You do not need to lookup pStat for tnum in non-debug build since
you know stat tables id from schema_def.h. This HashFind is useful for
debug assertion only.
As you already coincide (according to you changes on branch), there is no+ struct Expr *col_eq_expr =
+ sqlite3PExpr(parse, TK_EQ, col_type_expr, col_name_expr);
+ if (col_type_expr == NULL || col_name_expr == NULL) {
3. If col_eq_expr == NULL here, then col_type/name_expr leak.