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

Fixed CORE-5093 - Alter computed field type does not work.

This commit is contained in:
asfernandes 2016-02-01 16:51:50 +00:00
parent 08d4a3ed45
commit 36ac140be8
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -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);