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

Fixed two bugs with PSQL cursors.

This commit is contained in:
dimitr 2005-09-30 11:40:52 +00:00
parent 225410b36c
commit cbf17d7a61

View File

@ -3520,6 +3520,23 @@ static jrd_nod* pass1(thread_db* tdbb,
case nod_stream:
return (jrd_nod*) pass1_rse(tdbb, csb, (RecordSelExpr*) node, view, view_stream);
case nod_dcl_cursor:
node->nod_arg[e_dcl_cursor_rse] =
pass1(tdbb, csb, node->nod_arg[e_dcl_cursor_rse], view, view_stream,
validate_expr);
break;
case nod_cursor_stmt:
if ((UCHAR) (IPTR) node->nod_arg[e_cursor_stmt_op] == blr_cursor_fetch) {
node->nod_arg[e_cursor_stmt_seek] =
pass1(tdbb, csb, node->nod_arg[e_cursor_stmt_seek], view, view_stream,
validate_expr);
node->nod_arg[e_cursor_stmt_into] =
pass1(tdbb, csb, node->nod_arg[e_cursor_stmt_into], view, view_stream,
validate_expr);
}
break;
case nod_max:
case nod_min:
case nod_average: