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

Fixed CORE-3180 - ALTER VIEW with not matched columns in declaration and selection crashs the server

This commit is contained in:
asfernandes 2010-10-17 14:32:04 +00:00
parent a85fd4cfa8
commit 98bf701126

View File

@ -3881,7 +3881,14 @@ static void define_view(CompiledStatement* statement, NOD_TYPE op)
const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[1]; const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[1];
field_string = field_name->str_data; field_string = field_name->str_data;
} }
ptr++; else
{
// Generate an error when going out of this loop.
++ptr;
break;
}
++ptr;
} }
// if not an expression, point to the proper base relation field, // if not an expression, point to the proper base relation field,