8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 19:23:03 +01:00
This commit is contained in:
robocop 2009-11-15 12:21:33 +00:00
parent 32ea069957
commit d0fe2b0d6b
2 changed files with 6 additions and 3 deletions

View File

@ -741,7 +741,8 @@ dsql_nod* PASS1_node(CompiledStatement* statement, dsql_nod* input)
rel_alias = (dsql_str*) input->nod_arg[e_rpn_alias];
couldBeCte = !input->nod_arg[e_rpn_package] && !input->nod_arg[e_rpn_inputs];
}
else { // nod_relation_name
else {
// nod_relation_name
rel_name = (dsql_str*) input->nod_arg[e_rln_name];
rel_alias = (dsql_str*) input->nod_arg[e_rln_alias];
}

View File

@ -1094,7 +1094,8 @@ static void init(FB_API_HANDLE* db_handle)
{
UDSQL_error = (dsql_err_stblock*) gds__alloc((SLONG) sizeof(dsql_err_stblock));
// FREE: by exit cleanup()
if (!UDSQL_error) { // NOMEM:
if (!UDSQL_error) {
// NOMEM:
return; // Don't set the init_flag
}
init_flag = true;
@ -1120,7 +1121,8 @@ static void init(FB_API_HANDLE* db_handle)
dbb = (dsql_dbb*) gds__alloc((SLONG) sizeof(dsql_dbb));
// FREE: by database exit handler cleanup_database()
if (!dbb) { // NOMEM
if (!dbb) {
// NOMEM
return; // Not a great error handler
}