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

Fix bug with alias hiding datatype by datatype-list coercion

This commit is contained in:
arnobrinkman 2005-04-19 09:55:53 +00:00
parent 77572bda2c
commit cfc703f766

View File

@ -1306,6 +1306,12 @@ void MAKE_desc_from_list(dsc* desc, dsql_nod* node,
dsql_nod** arg = node->nod_arg;
for (dsql_nod** end = arg + node->nod_count; arg < end; arg++) {
dsql_nod* tnod = *arg;
// If this is an alias pick the source datatype
if (tnod->nod_type == nod_alias) {
tnod = tnod->nod_arg[e_alias_value];
}
// do we have only literal NULLs?
if (tnod->nod_type != nod_null) {
all_nulls = false;