8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 01:23:03 +01:00

Fixed my SEGV, thanks to Adriano.

This commit is contained in:
dimitr 2004-11-24 13:33:05 +00:00
parent ff4269b17b
commit 05dd909c6c

View File

@ -1279,7 +1279,6 @@ dsql_nod* PASS1_statement(dsql_req* request, dsql_nod* input, bool proc_flag)
node = MAKE_node(input->nod_type, input->nod_count);
node->nod_flags = input->nod_flags;
dsql_nod* cursor = node->nod_arg[e_flp_cursor] = input->nod_arg[e_flp_cursor];
fb_assert(cursor->nod_flags > 0);
const dsql_nod* select = input->nod_arg[e_flp_select];
node->nod_arg[e_flp_select] =
@ -1287,6 +1286,7 @@ dsql_nod* PASS1_statement(dsql_req* request, dsql_nod* input, bool proc_flag)
select->nod_arg[e_select_lock]);
if (cursor) {
fb_assert(cursor->nod_flags > 0);
pass1_cursor_name(request, (dsql_str*) cursor->nod_arg[e_cur_name],
-1U, false);
cursor->nod_arg[e_cur_rse] = node->nod_arg[e_flp_select];