Skip to content

Commit

Permalink
Fixed CORE-1055.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyemanov committed Dec 15, 2006
1 parent d420e52 commit 2a79978
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/dsql/metd.epp
Expand Up @@ -1273,6 +1273,13 @@ dsql_prc* METD_get_procedure(dsql_req* request, const dsql_str* name)
dsql_prc* temp;
SSHORT type, count, defaults;

// see if the procedure is the one currently being defined in this request

if (((temp = request->req_procedure) != NULL) &&
!strcmp((char*) temp->prc_name, (char*) name->str_data)) {
return temp;
}

RecMutexHolder holder;

// Start by seeing if symbol is already defined
Expand All @@ -1287,13 +1294,6 @@ dsql_prc* METD_get_procedure(dsql_req* request, const dsql_str* name)
return (dsql_prc*) symbol->sym_object;
}

// see if the procedure is the one currently being defined in this request

if (((temp = request->req_procedure) != NULL) &&
!strcmp((char*) temp->prc_name, (char*) name->str_data)) {
return temp;
}

// now see if it is in the database

ISC_STATUS_ARRAY isc_status = {0};
Expand Down

0 comments on commit 2a79978

Please sign in to comment.