mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
fetch_step(): Print a more useful error message when the cursor is closed.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user