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

CREATE VIEW should be aware that a column alias doesn't necessarily mean an expression.

This commit is contained in:
dimitr 2006-01-26 11:21:12 +00:00
parent a3bd31d396
commit a3b2c23aff

View File

@ -3697,6 +3697,10 @@ static void define_view( dsql_req* request, NOD_TYPE op)
{
dsql_nod* field_node = *i_ptr;
if (field_node->nod_type == nod_alias) {
field_node = field_node->nod_arg[e_alias_value];
}
// check if this is a field or an expression
const dsql_fld* field = NULL;