Skip to content

Commit

Permalink
More complete fix for CORE-1451
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes committed Sep 27, 2007
1 parent d7e5bc6 commit d51c478
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dsql/pass1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4014,6 +4014,13 @@ static dsql_nod* pass1_dbkey( dsql_req* request, dsql_nod* input)
continue;
}

if (!context->ctx_relation)
{
ERRD_post(isc_sqlerr, isc_arg_number, (SLONG) -607,
isc_arg_gds, isc_dsql_dbkey_from_non_table,
0);
}

dsql_nod* node = MAKE_node(nod_dbkey, 1);
dsql_nod* rel_node = MAKE_node(nod_relation, e_rel_count);
rel_node->nod_arg[0] = (dsql_nod*) context;
Expand Down

0 comments on commit d51c478

Please sign in to comment.