1
0
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:
osku
2006-03-22 13:23:07 +00:00
parent 49da24d881
commit f58fa91cdc

View File

@@ -1974,8 +1974,8 @@ fetch_step(
sel_node->common.parent = node;
if (sel_node->state == SEL_NODE_CLOSED) {
/* SQL error detected */
fprintf(stderr, "SQL error %lu\n", (ulong)DB_ERROR);
fprintf(stderr,
"InnoDB: Error: fetch called on a closed cursor\n");
que_thr_handle_error(thr, DB_ERROR, NULL, 0);