Skip to content

Commit

Permalink
Add print stmts
Browse files Browse the repository at this point in the history
Signed-off-by: Salil Chandra <[email protected]>
  • Loading branch information
chands10 committed Jan 30, 2025
1 parent f988d72 commit 86cf8e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/sqlexplain.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ int print_cursor_description(strbuf *out, struct cursor_info *cinfo, int append_
}
strbuf_appendf(out, "temp_%d", cinfo->tbl);
} else if (cinfo->tbl < 0) {
printf("cinfo->tbl is less than 0!\n");
strbuf_append(out, "table \"???\"");
} else {
struct dbtable *db;
Expand Down Expand Up @@ -378,6 +379,7 @@ void describe_cursor(Vdbe *v, int pc, struct cursor_info *cur)
if (db != NULL) {
cur->tbl = db->dbs_idx;
} else {
printf("describe_cursor: db is NULL!\n");
cur->ix = -1;
cur->tbl = -1;
}
Expand Down

0 comments on commit 86cf8e0

Please sign in to comment.