mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Fixed CORE-5093 - Alter computed field type does not work.
This commit is contained in:
parent
08d4a3ed45
commit
36ac140be8
@ -7656,6 +7656,8 @@ void AlterRelationNode::modifyField(thread_db* tdbb, DsqlCompilerScratch* dsqlSc
|
||||
|
||||
if (clause->computed)
|
||||
{
|
||||
field->flags |= FLD_computed;
|
||||
|
||||
defineComputed(dsqlScratch, dsqlNode, field, clause->computed, computedSource,
|
||||
computedValue);
|
||||
}
|
||||
|
@ -3730,7 +3730,7 @@ alter_op($relationNode)
|
||||
| col_opt symbol_column_name KW_TYPE non_array_type def_computed
|
||||
{
|
||||
RelationNode::AlterColTypeClause* clause = newNode<RelationNode::AlterColTypeClause>();
|
||||
clause->field = newNode<dsql_fld>();
|
||||
clause->field = $4;
|
||||
clause->field->fld_name = *$2;
|
||||
clause->computed = $5;
|
||||
$relationNode->clauses.add(clause);
|
||||
|
Loading…
Reference in New Issue
Block a user