mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 04:03:03 +01:00
CREATE VIEW should be aware that a column alias doesn't necessarily mean an expression.
This commit is contained in:
parent
a3bd31d396
commit
a3b2c23aff
@ -3697,6 +3697,10 @@ static void define_view( dsql_req* request, NOD_TYPE op)
|
|||||||
{
|
{
|
||||||
dsql_nod* field_node = *i_ptr;
|
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
|
// check if this is a field or an expression
|
||||||
|
|
||||||
const dsql_fld* field = NULL;
|
const dsql_fld* field = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user