Commit f58fa91c authored by osku's avatar osku

fetch_step(): Print a more useful error message when the cursor is closed.

parent 49da24d8
...@@ -1974,8 +1974,8 @@ fetch_step( ...@@ -1974,8 +1974,8 @@ fetch_step(
sel_node->common.parent = node; sel_node->common.parent = node;
if (sel_node->state == SEL_NODE_CLOSED) { if (sel_node->state == SEL_NODE_CLOSED) {
/* SQL error detected */ fprintf(stderr,
fprintf(stderr, "SQL error %lu\n", (ulong)DB_ERROR); "InnoDB: Error: fetch called on a closed cursor\n");
que_thr_handle_error(thr, DB_ERROR, NULL, 0); que_thr_handle_error(thr, DB_ERROR, NULL, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment